Make objective C use C standard version. Closes #5495.
parent
8f12102549
commit
c54dd63547
6 changed files with 62 additions and 4 deletions
@ -0,0 +1,6 @@ |
||||
## Objective C/C++ standard versions |
||||
|
||||
Objective C and C++ compilations will from now on use the language |
||||
versions set in `c_std` and `cpp_std`, respectively. It is not |
||||
possible to set the language version separately for Objective C and |
||||
plain C. |
@ -1,4 +1,4 @@ |
||||
project('objective c', 'objc') |
||||
project('objective c', 'objc', default_options: ['c_std=c99']) |
||||
|
||||
exe = executable('prog', 'prog.m') |
||||
test('objctest', exe) |
||||
|
@ -1,4 +1,4 @@ |
||||
project('Objective C++', 'objcpp') |
||||
project('Objective C++', 'objcpp', default_options: 'cpp_std=c++14') |
||||
|
||||
exe = executable('objcppprog', 'prog.mm') |
||||
test('objcpp', exe) |
||||
|
Loading…
Reference in new issue