aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/common/94 default options/meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/test cases/common/94 default options/meson.build b/test cases/common/94 default options/meson.build
index a718bcc..a9176e0 100644
--- a/test cases/common/94 default options/meson.build
+++ b/test cases/common/94 default options/meson.build
@@ -1,20 +1,20 @@
project('default options', 'cpp', 'c', default_options : [
'buildtype=debugoptimized',
- 'cpp_std=c++03',
+ 'cpp_std=c++11',
'cpp_eh=none',
'warning_level=3',
])
-cpp = meson.get_compiler('cpp')
+cpp_id = meson.get_compiler('cpp').get_id()
assert(get_option('buildtype') == 'debugoptimized', 'Build type default value wrong.')
-if cpp.get_id() == 'msvc'
+if cpp_id == 'msvc'
cpp_eh = get_option('cpp_eh')
assert(cpp_eh == 'none', 'MSVC eh value is "' + cpp_eh + '" instead of "none"')
else
cpp_std = get_option('cpp_std')
- assert(cpp_std == 'c++03', 'C++ std value is "' + cpp_std + '" instead of c++03.')
+ assert(cpp_std == 'c++11', 'C++ std value is "' + cpp_std + '" instead of c++11.')
endif
w_level = get_option('warning_level')