summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorMichael J Steel <michael.steel@mq.edu.au>2025-07-04 17:17:03 +1000
committerDylan Baker <dylan@pnwbakers.com>2025-07-07 09:09:20 -0700
commitd990d0694483aac96bf8b588a83fcdf93067d71a (patch)
tree3966b5332992da440579bb86ca51aa9b8c75333b /mesonbuild/compilers/c.py
parent33c14587e5caedf2ada8dfa3053734f488e91354 (diff)
downloadmeson-d990d0694483aac96bf8b588a83fcdf93067d71a.tar.gz
Correct get_option_std_args for IntelClCCompiler
In get_option_std_args for the Intel C compiler, the requested command line flag is 'winlibs' which returns a list of strings of libs. It should be 'std' as in other adjacent classes, to return the particular value of the C standard desired.
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 7a2fec59e..424b61251 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -504,7 +504,7 @@ class IntelClCCompiler(IntelVisualStudioLikeCompiler, VisualStudioLikeCCompilerM
def get_option_std_args(self, target: BuildTarget, env: Environment, subproject: T.Optional[str] = None) -> T.List[str]:
args: T.List[str] = []
- std = self.get_compileropt_value('winlibs', env, target, subproject)
+ std = self.get_compileropt_value('std', env, target, subproject)
assert isinstance(std, str)
if std == 'c89':
mlog.log("ICL doesn't explicitly implement c89, setting the standard to 'none', which is close.", once=True)