mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 22:25:40 +00:00
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> |
||
---|---|---|
.. | ||
app | ||
backports | ||
compiler | ||
emu | ||
flash | ||
ide | ||
reports | ||
toolchain | ||
usage | ||
util | ||
ccache.cmake | ||
cfb.cmake | ||
dts.cmake | ||
extensions.cmake | ||
extra_flags.cmake | ||
fpu-for-gcc-m-cpu.cmake | ||
gcc-m-cpu.cmake | ||
generic_toolchain.cmake | ||
git.cmake | ||
hex.cmake | ||
host-tools.cmake | ||
kconfig.cmake | ||
kobj.cmake | ||
pristine.cmake | ||
python.cmake | ||
target_toolchain.cmake | ||
version.cmake | ||
zephyr_module.cmake |