aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-29 12:38:36 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-10-30 06:43:49 -0700
commitb8ef693a2af7463be0cfa3cc752decd4c4955587 (patch)
tree649731ccd33811167c28fff4903b5a0f77c0c98f /mesonbuild/compilers.py
parentba578db0314aa85729ca13df734b2bd359d2aa35 (diff)
downloadmeson-b8ef693a2af7463be0cfa3cc752decd4c4955587.zip
meson-b8ef693a2af7463be0cfa3cc752decd4c4955587.tar.gz
meson-b8ef693a2af7463be0cfa3cc752decd4c4955587.tar.bz2
Clang also supports gnu89/99/11, gnu++03/11/14/1z
The list of supported standards is identical for GCC and Clang. We don't list duplicate standard names however, such as c++03 and c++09 https://github.com/llvm-mirror/clang/blob/master/include/clang/Frontend/LangStandards.def
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 2d7a080..d7cd1f7 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1950,7 +1950,8 @@ class GnuCCompiler(GnuCompiler, CCompiler):
def get_options(self):
opts = {'c_std' : coredata.UserComboOption('c_std', 'C language standard to use',
- ['none', 'c89', 'c99', 'c11', 'gnu89', 'gnu99', 'gnu11'],
+ ['none', 'c89', 'c99', 'c11',
+ 'gnu89', 'gnu99', 'gnu11'],
'none')}
if self.gcc_type == GCC_MINGW:
opts.update({
@@ -2084,7 +2085,8 @@ class ClangCCompiler(ClangCompiler, CCompiler):
def get_options(self):
return {'c_std' : coredata.UserComboOption('c_std', 'C language standard to use',
- ['none', 'c89', 'c99', 'c11'],
+ ['none', 'c89', 'c99', 'c11',
+ 'gnu89', 'gnu99', 'gnu11',],
'none')}
def get_option_compile_args(self, options):
@@ -2111,8 +2113,9 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler):
def get_options(self):
return {'cpp_std' : coredata.UserComboOption('cpp_std', 'C++ language standard to use',
- ['none', 'c++03', 'c++11', 'c++14', 'c++1z'],
- 'none')}
+ ['none', 'c++03', 'c++11', 'c++14', 'c++1z',
+ 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++1z'],
+ 'none')}
def get_option_compile_args(self, options):
args = []