This allows the user to pass additional flags for the objective-c++ compiler.pull/1843/head
parent
18d2e7b91c
commit
50c81d267b
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||||
|
project('objective c++ args', 'objcpp') |
||||||
|
|
||||||
|
exe = executable('prog', 'prog.mm', objcpp_args : ['-DMESON_OBJCPP_TEST']) |
||||||
|
test('objective c++ args', exe) |
@ -0,0 +1,16 @@ |
|||||||
|
#import<stdio.h> |
||||||
|
|
||||||
|
class TestClass |
||||||
|
{ |
||||||
|
}; |
||||||
|
|
||||||
|
int main(int argc, char **argv) |
||||||
|
{ |
||||||
|
#ifdef MESON_OBJCPP_TEST |
||||||
|
int x = 1; |
||||||
|
#endif |
||||||
|
|
||||||
|
printf("x = %x\n", x); |
||||||
|
|
||||||
|
return 0; |
||||||
|
} |
Loading…
Reference in new issue