From 1412abc516e56b7d90f36fc75acb3e4b8c294e30 Mon Sep 17 00:00:00 2001 From: Tom Evers Date: Thu, 27 Feb 2025 11:44:28 +0100 Subject: Fixes issue 14089 (detection of Intel compiler) --- mesonbuild/compilers/c.py | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3