summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Evers <Tom.J.Evers@gmail.com>2025-02-27 11:44:28 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-02-27 07:12:21 -0800
commit1412abc516e56b7d90f36fc75acb3e4b8c294e30 (patch)
tree1038a0d9b99c7eae172db9f31f1f895a27d137f2
parent5bbd030290db1408ab1d7025072750f086642f85 (diff)
downloadmeson-1412abc516e56b7d90f36fc75acb3e4b8c294e30.tar.gz
Fixes issue 14089 (detection of Intel compiler)
-rw-r--r--mesonbuild/compilers/c.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 4f2bd2fae..85eea2f1c 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -497,10 +497,7 @@ class IntelClCCompiler(IntelVisualStudioLikeCompiler, VisualStudioLikeCCompilerM
def get_options(self) -> 'MutableKeyedOptionDictType':
opts = super().get_options()
key = self.form_compileropt_key('std')
- # To shut up mypy.
- if isinstance(opts, dict):
- raise RuntimeError('This is a transitory issue that should not happen. Please report with full backtrace.')
- std_opt = opts.get_value_object(key)
+ std_opt = opts[key]
assert isinstance(std_opt, options.UserStdOption), 'for mypy'
std_opt.set_versions(['c89', 'c99', 'c11'])
return opts