Skip to content
Commit c898c156 authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Carles Cufí
Browse files

cmake: Fix bug where -Wno- flags could not be compatbility-checked

It turns out that 'check_compiler_flag' has not been working for flags
that start with -Wno-. This has caused old compilers to accidentally
use flags that they do not support.

To fix this we check for compatibility with the appropriate -W flag
instead and infer the -Wno- compatibility from this check.

The root cause of this problem is explained well here:

https://github.com/zephyrproject-rtos/zephyr/pull/18922#discussion_r321537098



Signed-off-by: default avatarSebastian Bøe <sebastian.boe@nordicsemi.no>
parent 764f07c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment