aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objc.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-09-09 21:20:48 -0400
committerDylan Baker <dylan@pnwbakers.com>2021-09-10 13:03:56 -0700
commit3f796c43df2c218f615d445ad6ffdbc6ca119818 (patch)
treeb0fd605d988c763bb75d2720486328aaa74ebff4 /mesonbuild/compilers/objc.py
parent0fcd696b1e0c6ff9ca462ac2f8e0d497bf11e2c5 (diff)
downloadmeson-3f796c43df2c218f615d445ad6ffdbc6ca119818.zip
meson-3f796c43df2c218f615d445ad6ffdbc6ca119818.tar.gz
meson-3f796c43df2c218f615d445ad6ffdbc6ca119818.tar.bz2
objc/objcpp compiler: accept all gnu stds corresponding to c/c++ stds
The clang compiler now reimplements and re-checks the c_std and cpp_std options in order to use them for objc as well, but it didn't consistently support the same options. First it completely excluded all the gnu ones, and then it added a handful of them but not for C++. Be fully consistent -- or at least as consistent as we can be, given a minimally working fix. (The C/C++ compiler mixin actually gates different stds depending on detected clang version, we do not do that here.) Fixes regression in c54dd63547b030e3d9feee694ec6f49c434f0df8 Fixes incomplete fix from #8766 (which didn't fix objcpp at all) Fixes #9237
Diffstat (limited to 'mesonbuild/compilers/objc.py')
-rw-r--r--mesonbuild/compilers/objc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py
index 9114f93..7afa44f 100644
--- a/mesonbuild/compilers/objc.py
+++ b/mesonbuild/compilers/objc.py
@@ -90,7 +90,7 @@ class ClangObjCCompiler(ClangCompiler, ObjCCompiler):
opts.update({
OptionKey('std', machine=self.for_machine, lang='c'): coredata.UserComboOption(
'C language standard to use',
- ['none', 'c89', 'c99', 'c11', 'c17', 'gnu99', 'gnu11'],
+ ['none', 'c89', 'c99', 'c11', 'c17', 'gnu89', 'gnu99', 'gnu11', 'gnu17'],
'none',
)
})