This allows the user to pass additional flags for the objective-c compiler.pull/1843/head
parent
07f117e385
commit
18d2e7b91c
3 changed files with 20 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
project('objective c args', 'objc') |
||||
|
||||
exe = executable('prog', 'prog.m', objc_args : ['-DMESON_TEST']) |
||||
test('objective c args', exe) |
@ -0,0 +1,11 @@ |
||||
#import<stdio.h> |
||||
|
||||
int main(int argc, char **argv) |
||||
{ |
||||
#ifdef MESON_TEST |
||||
int x = 3; |
||||
#endif |
||||
|
||||
printf("x = %d\n", x); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue