zephyr/cmake
Daniel Leung 7aca9af7ed cmake: need to specify m32/m64 for x86_64 toolchain
Since x86_64-zephyr-elf is a multi-lib toolchain, m32/m64
need to be specified for the compiler to return the correct
library path when queried (e.g. --print-libgcc-file-name).
This affects the compile check done by CMake. Without these
flags, the compiler returns incorrect toolchain path (e.g.
requiring 64-bit libraries but returning 32-bit library path).
This also affects compiler flag checks for "-lstdc++". Incorrect
library path results in error when checking for "-lstdc++", and
this flag will not be used for the build. This results in
undefined references when compiling C++ code.

This creates target_x86.cmake to add the necessary flags for
CMake to use. The target_x86_64.cmake is also created to
mirror the same change.

Also removing the -m32 flags for host-gcc since we are not
building x86 targets with the host-gcc compiler.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2019-10-29 06:19:33 +01:00
..
app cmake: add app boards subdir as search location for board overlay files 2019-10-01 20:38:24 -07:00
backports cmake: Fixed python detection bug 2018-12-21 11:13:03 +01:00
bintools cmake: Toolchain abstraction: Abstraction of binary tool, strip. 2019-08-02 13:05:59 +02:00
compiler cmake: need to specify m32/m64 for x86_64 toolchain 2019-10-29 06:19:33 +01:00
emu x86: consolidate x86_64 architecture, SoC and boards 2019-10-25 17:57:55 -04:00
flash cmake: delete obsolete deprecation checks 2019-06-07 13:43:51 +02:00
ide license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
linker/ld target_relocation.cmake: fix spell typo 2019-07-18 11:09:48 -04:00
reports license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
toolchain cmake: need to specify m32/m64 for x86_64 toolchain 2019-10-29 06:19:33 +01:00
usage cmake: Split out board listing from usage 2019-04-25 09:14:06 -07:00
util license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
boards.cmake cmake: Split out board listing from usage 2019-04-25 09:14:06 -07:00
ccache.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
cfb.cmake generated/cfb_font_dice.h: don't leak absolute paths in comment 2019-06-19 08:40:59 -04:00
dts.cmake dtc: Remove support for common.dts 2019-10-24 11:01:08 -05:00
extensions.cmake cmake: Added function for parsing gcc dependency metadata 2019-10-23 17:54:41 +02:00
extra_flags.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
gcc-m-cpu.cmake arch: arm: Add Cortex-R5 support 2019-08-09 22:50:50 +02:00
generic_toolchain.cmake cmake: Toolchain abstraction: Abstraction of binary tools, foundation. 2019-07-31 11:09:35 +02:00
git.cmake cmake: explain BUILD_VERSION and KERNEL_VERSION_* 2019-05-09 11:52:05 +02:00
hex.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
host-tools.cmake west: require v0.6.0 or higher 2019-08-05 15:17:45 +02:00
kconfig.cmake cmake: Fix bug where DTS_BINDINGS_DIRS could only have one entry 2019-10-01 10:35:23 -07:00
kobj.cmake cmake: Fix missing dependency 2019-05-16 07:47:18 -05:00
pristine.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
python.cmake cmake: Instruct Python to use UTF-8 on Windows 2019-07-26 12:00:45 +02:00
target_toolchain.cmake cmake: Toolchain abstraction: Abstraction of binary tools, foundation. 2019-07-31 11:09:35 +02:00
version.cmake cmake: explain BUILD_VERSION and KERNEL_VERSION_* 2019-05-09 11:52:05 +02:00
zephyr_module.cmake cmake: zephyr_modules: Add west executable argument 2019-05-03 14:23:09 -04:00