mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 03:52:26 +00:00
Fixes: #28230 The introduction of CMake SHELL prefix in compile options to avoid symbol de-duplication caused the build flag export feature to fail. The export itself works, but unfortunately CMake only strips `SHELL` prefix for its own compiler invocation, and not when exporting the build flags. This causes `SHELL` to be present in the Makefile.exports.<language> files, leading to problems in external build systems. This is fixed by using `zephyr_get_compile_options_for_lang()` that strips `SHELL` and use the returned value for the export handling. To ensure all compile options has been defined, then the inclusion of `cmake/makefile_exports` has been moved to the end of `zephyr/CMakeLists.txt` file. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no> |
||
---|---|---|
.. | ||
app | ||
bintools | ||
compiler | ||
emu | ||
flash | ||
ide | ||
linker | ||
makefile_exports | ||
reports | ||
toolchain | ||
usage | ||
util | ||
boards.cmake | ||
ccache.cmake | ||
cfb.cmake | ||
dts.cmake | ||
extensions.cmake | ||
extra_flags.cmake | ||
gcc-m-cpu.cmake | ||
generic_toolchain.cmake | ||
git.cmake | ||
hex.cmake | ||
host-tools.cmake | ||
kconfig.cmake | ||
kobj.cmake | ||
mcuboot.cmake | ||
pristine.cmake | ||
python.cmake | ||
target_toolchain_flags.cmake | ||
target_toolchain.cmake | ||
version.cmake | ||
west.cmake | ||
zephyr_module.cmake |