aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py
index 0f02636..15e643a 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -34,7 +34,7 @@ from mesonbuild import mesonmain
from mesonbuild import mtest
from mesonbuild import mlog
from mesonbuild.environment import Environment, detect_ninja
-from mesonbuild.coredata import backendlist, version as meson_version
+from mesonbuild.coredata import backendlist, version as meson_version, OptionKey
NINJA_1_9_OR_NEWER = False
NINJA_CMD = None
@@ -127,7 +127,7 @@ def get_fake_env(sdir='', bdir=None, prefix='', opts=None):
if opts is None:
opts = get_fake_options(prefix)
env = Environment(sdir, bdir, opts)
- env.coredata.compiler_options.host['c']['args'] = FakeCompilerOptions()
+ env.coredata.compiler_options[OptionKey('args', lang='c')] = FakeCompilerOptions()
env.machines.host.cpu_family = 'x86_64' # Used on macOS inside find_library
return env