This is a) useless because it's only used to print which options are not default, and b) harmful because it can result in cases where things break, like in projects that set a standard that the chosen compiler doesn't support, but the project (or some subset) can be built with a different standard. Fixes: #83600.57
parent
ef8162feda
commit
21db61beac
4 changed files with 22 additions and 5 deletions
@ -0,0 +1,3 @@ |
||||
int main(void) { |
||||
return 0; |
||||
} |
@ -0,0 +1,8 @@ |
||||
project( |
||||
'invalid C standard overriden to valid one', |
||||
'c', |
||||
default_options : ['c_std=invalid99'], |
||||
) |
||||
|
||||
exe = executable('main', 'main.c') |
||||
test('main', exe) |
@ -0,0 +1,9 @@ |
||||
{ |
||||
"matrix": { |
||||
"options": { |
||||
"c_std": [ |
||||
{ "val": "c89" } |
||||
] |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue