aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-29 10:11:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-11-12 10:03:14 -0800
commita28a34c6845144d2e947bd698244fb33909b4d45 (patch)
tree735e8094e820d3c1bb0d3ae5f5714f42cea415e6 /mesonbuild/compilers/c.py
parent3e62307f3a5d184c8c331de2809d5eaa38f001fd (diff)
downloadmeson-a28a34c6845144d2e947bd698244fb33909b4d45.zip
meson-a28a34c6845144d2e947bd698244fb33909b4d45.tar.gz
meson-a28a34c6845144d2e947bd698244fb33909b4d45.tar.bz2
compilers: Standardize the names of compiler options
Most options don't use language prefaced options (std vs c_std) internally, as we don't need that due to namespacing. Let's do that across the board
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index fd3ebc0..c136c6d 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -615,9 +615,9 @@ class Xc16CCompiler(Xc16Compiler, CCompiler):
def get_options(self) -> 'OptionDictType':
opts = CCompiler.get_options(self)
- opts.update({'c_std': coredata.UserComboOption('C language standard to use',
- ['none', 'c89', 'c99', 'gnu89', 'gnu99'],
- 'none')})
+ opts.update({'std': coredata.UserComboOption('C language standard to use',
+ ['none', 'c89', 'c99', 'gnu89', 'gnu99'],
+ 'none')})
return opts
def get_no_stdinc_args(self) -> T.List[str]:
@@ -660,9 +660,9 @@ class CompCertCCompiler(CompCertCompiler, CCompiler):
def get_options(self) -> 'OptionDictType':
opts = CCompiler.get_options(self)
- opts.update({'c_std': coredata.UserComboOption('C language standard to use',
- ['none', 'c89', 'c99'],
- 'none')})
+ opts.update({'std': coredata.UserComboOption('C language standard to use',
+ ['none', 'c89', 'c99'],
+ 'none')})
return opts
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]:
@@ -698,9 +698,9 @@ class C2000CCompiler(C2000Compiler, CCompiler):
def get_options(self) -> 'OptionDictType':
opts = CCompiler.get_options(self)
- opts.update({'c_std': coredata.UserComboOption('C language standard to use',
- ['none', 'c89', 'c99', 'c11'],
- 'none')})
+ opts.update({'std': coredata.UserComboOption('C language standard to use',
+ ['none', 'c89', 'c99', 'c11'],
+ 'none')})
return opts
def get_no_stdinc_args(self) -> T.List[str]: