zephyr/cmake/compiler
Tom Hughes b6766aeb6b cmake: compiler: Remove -fshort-enums
"-fshort-enums" changes the ABI. It's not enabled for gcc, so it's not
clear why it's enabled for clang (only ARM) and armclang, other than it
looks like some users of these toolchains may be linking against code
that is compiled with "-fshort-enums".

As an example, when compiling with clang, CONFIG_LTO, and a toolchain
built without "-fshort-enums", the linker warns:

ld.lld: error: linking module flags 'min_enum_size': IDs have
conflicting values in
'/usr/armv7m-cros-eabi/usr/lib/libc++_static.a(string.cpp.o at 784090)'
and 'ld-temp.o'

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-06-06 11:52:22 +02:00
..
arcmwdt cmake: Fix compilation options for kobject_hash*.c 2025-05-31 07:02:36 -04:00
armclang cmake: compiler: Remove -fshort-enums 2025-06-06 11:52:22 +02:00
clang cmake: compiler: Remove -fshort-enums 2025-06-06 11:52:22 +02:00
gcc cmake: Fix compilation options for kobject_hash*.c 2025-05-31 07:02:36 -04:00
host-gcc
iar iar: toolchain: arm: Fix FPU settings for CM55 and CM85 2025-04-14 13:06:41 +02:00
icx cmake: toolchain: remove obsolete and unused macros 2024-09-04 21:26:59 +02:00
xcc compiler: for xtensa add libgcc support 2024-11-16 14:07:30 -05:00
xt-clang cmake: compiler/xt-clang: add -Wno-unknown-warning-option 2025-03-14 01:01:22 +01:00
compiler_features.cmake
compiler_flags_template.cmake cmake: Fix compilation options for kobject_hash*.c 2025-05-31 07:02:36 -04:00