zephyr/cmake/compiler
Jonathon Penix d6041d62b3 cmake: kconfig: Add new abstraction for -Oz optimization level
Both Clang [1] and (recently) GCC [2] support this flag to enable
additional codesize optimizations beyond -Os, possibly at the expense of
performance.

This tradeoff is worthwhile for some (and, Clang's -Oz seems to be
closer to GCC's -Os currently), so add a new abstraction for this flag
so users can select it as appropriate.

[1] https://clang.llvm.org/docs/CommandGuide/clang.html#cmdoption-O0
[2] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-Oz

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
2024-06-14 19:05:50 -04:00
..
arcmwdt ARCMWDT: Add compiler support for nSIM RMX platform 2024-06-14 19:01:06 -04:00
armclang cmake/compiler/: drop ERROR_QUIET when looking for compiler --version 2023-12-04 16:38:08 +00:00
clang cmake: llvm: arm64: Set arm64 flags when building with clang 2024-06-13 17:58:04 +02:00
gcc cmake: kconfig: Add new abstraction for -Oz optimization level 2024-06-14 19:05:50 -04:00
host-gcc tests/misc: Add llext EDK test 2024-05-17 16:21:48 +01:00
icx cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
xcc xcc/cmake: fix error message when TOOLCHAIN_VER is undefined 2024-02-16 14:54:14 +01:00
xt-clang llext: xtensa: add support for the xt-clang toolchain 2024-05-29 10:49:40 -07:00
compiler_features.cmake
compiler_flags_template.cmake cmake: kconfig: Add new abstraction for -Oz optimization level 2024-06-14 19:05:50 -04:00