diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-05-07 13:44:12 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-10 13:51:24 -0700 |
commit | cb70a20490eb1ca9a201bb2de652726d6bb28725 (patch) | |
tree | 487aff4e2feed83b455085d71369274f83f756f0 /mesonbuild/compilers/cpp.py | |
parent | dcfd9185488a843e85f051169ee1d10f503a13ef (diff) | |
download | meson-cb70a20490eb1ca9a201bb2de652726d6bb28725.zip meson-cb70a20490eb1ca9a201bb2de652726d6bb28725.tar.gz meson-cb70a20490eb1ca9a201bb2de652726d6bb28725.tar.bz2 |
compilers: make keyword args to Compiler.compile keyword only
Becuase treating args as either keyword or positional makes inheritance
really awful to work with.
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r-- | mesonbuild/compilers/cpp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 12644a2..5b5bb1c 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -97,7 +97,7 @@ class CPPCompiler(CLikeCompiler, Compiler): # 2. even if it did have an env object, that might contain another more # recent -std= argument, which might lead to a cascaded failure. CPP_TEST = 'int i = static_cast<int>(0);' - with self.compile(code=CPP_TEST, extra_args=[cpp_std_value], mode='compile') as p: + with self.compile(CPP_TEST, extra_args=[cpp_std_value], mode='compile') as p: if p.returncode == 0: mlog.debug('Compiler accepts {}:'.format(cpp_std_value), 'YES') return True |