zephyr/cmake/compiler
Stephanos Ioannidis cff94bf7a0 cmake: Add GCC -Og flag fallback to -O0.
The -Og (optimise for debugging) flag is only available for GCC 4.8.0
and above, and specifying it for a GCC version lower than 4.8.0 will
result in a compilation error.

This commit adds a check for compiler -Og optimisation flag support and
a fallback to -O0 (disable optimisation) when -Og flag is unsupported.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2019-12-09 16:17:12 +01:00
..
clang cmake: toolchain abstraction for undefined behaviour sanitizer 2019-10-07 15:00:20 +02:00
gcc cmake: Add GCC -Og flag fallback to -O0. 2019-12-09 16:17:12 +01:00
host-gcc cmake: need to specify m32/m64 for x86_64 toolchain 2019-10-29 06:19:33 +01:00
xcc cmake: compiler: gcc: Explicitly spell out stddef.h and limits.h 2019-08-02 14:58:02 +02:00