zephyr/cmake/compiler
Marc Herbert 7d3fbfccd1 host-gcc/target.cmake: stop discarding CMAKE_<tool>_FLAGS for x86
Prepend -m32 to existing flags as opposed to silently override and
discard them:

- set(CMAKE_<tool>_FLAGS                -m32 )
+ string(PREPEND CMAKE_<tool>_FLAGS   " -m32")

This stops discarding additional flags passed with either cmake
-DCMAKE_<tool>_FLAGS="-fu -bar" or cmake -C params.cmake.

Note this bug was affecting only the combination of x86 and
CMAKE_<tool>_FLAGS. x86_64 wasn't affected and other, non-empty
CMAKE_<tool>_FLAGS_[DEBUG/RELEASE/etc.] weren't affected either.

Also convert flags string to list when invoking --print-libgcc-file-name
to support more than one CMAKE_C_FLAGS.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-03-21 00:21:27 -07:00
..
clang compiler: clang: Include missing target 2019-03-06 22:40:25 -05:00
gcc libc: newlib: Cleanup/fix setting of system include paths 2019-03-13 06:50:23 -05:00
host-gcc host-gcc/target.cmake: stop discarding CMAKE_<tool>_FLAGS for x86 2019-03-21 00:21:27 -07:00
xcc compiler: add xcc as a standalone compiler 2019-02-24 17:48:10 -05:00