Currently we don't handle things correctly if we get a string we should split, and the linker and needs compiler arguments. It would result in two unsplit strings in a list, instead of the split arguments in a list Fixes: #8348pull/8390/head
parent
91e56c7d59
commit
90a7de3f2b
4 changed files with 41 additions and 16 deletions
@ -0,0 +1,11 @@ |
||||
#ifndef FOO |
||||
# error "FOO is not defined" |
||||
#endif |
||||
|
||||
#ifndef BAR |
||||
# error "BAR is not defined" |
||||
#endif |
||||
|
||||
int main(void) { |
||||
return 0; |
||||
} |
@ -0,0 +1,9 @@ |
||||
project('proper args splitting', 'c') |
||||
|
||||
test( |
||||
'main', |
||||
executable( |
||||
'main', |
||||
'main.c', |
||||
) |
||||
) |
@ -0,0 +1,9 @@ |
||||
{ |
||||
"matrix": { |
||||
"options": { |
||||
"c_args": [ |
||||
{ "val": "-DFOO -DBAR" } |
||||
] |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue