-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unit tests: Test ObjC and ObjC++ as well as C and C++
This tests ObjC and ObjC++ both with and without C enabled. I did this because I ran into issues where ObjC only worked when C was enabled, and then a later bug where C was disabled, due to the fact that C and ObjC both use `c_std` and not `objc_std`.
- Loading branch information
Showing
3 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
project('c cpp stds', 'c', 'cpp', | ||
default_options: [ | ||
'c_std=gnu89,c89', | ||
'cpp_std=gnu++98,vc++11', | ||
], | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright © 2024 Intel Corporation | ||
|
||
project( | ||
'c cpp stds', | ||
default_options: [ | ||
'c_std=gnu89,c89', | ||
'cpp_std=gnu++98,vc++11', | ||
], | ||
) | ||
|
||
if get_option('with-c') | ||
add_languages('c', 'cpp', native : false) | ||
endif | ||
if get_option('with-objc') | ||
add_languages('objc', 'objcpp', native : false) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright © 2024 Intel Corporation | ||
|
||
option('with-c', type : 'boolean', value : false) | ||
option('with-objc', type : 'boolean', value : false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters