2017-08-15 18:57:45 +02:00
|
|
|
diff -ur meson-0.42.0/mesonbuild/compilers/cpp.py meson-0.42.patched/mesonbuild/compilers/cpp.py
|
|
|
|
--- meson-0.42.0/mesonbuild/compilers/cpp.py 2017-08-13 20:43:17.000000000 +0200
|
|
|
|
+++ meson-0.42.patched/mesonbuild/compilers/cpp.py 2017-08-15 12:42:07.216511972 +0200
|
|
|
|
@@ -75,9 +75,13 @@
|
2017-03-17 14:58:10 +01:00
|
|
|
'3': default_warn_args + ['-Wextra', '-Wpedantic']}
|
|
|
|
|
|
|
|
def get_options(self):
|
|
|
|
+ c_stds = ['c++03', 'c++11']
|
2017-08-15 18:57:45 +02:00
|
|
|
+ g_stds = ['gnu++11']
|
2017-03-17 14:58:10 +01:00
|
|
|
+ if mesonlib.version_compare(self.version, '>=5.0.0'):
|
2017-08-15 18:57:45 +02:00
|
|
|
+ c_stds += ['c++14', 'c++1z']
|
|
|
|
+ g_stds += ['gnu++14', 'gnu++1z']
|
|
|
|
return {'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
|
2017-03-17 14:58:10 +01:00
|
|
|
- ['none', 'c++03', 'c++11', 'c++14', 'c++1z',
|
2017-08-15 18:57:45 +02:00
|
|
|
- 'gnu++11', 'gnu++14', 'gnu++1z'],
|
2017-03-17 14:58:10 +01:00
|
|
|
+ ['none'] + c_stds + g_stds,
|
2017-08-15 18:57:45 +02:00
|
|
|
'none')}
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options):
|