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
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