From 278c294aa45efc3e8b068bcd7632828ed5c92523 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 12 Jun 2019 18:08:45 -0400 Subject: Compiler options per lang A current rather untyped storage of options is one of the things that contributes to the options code being so complex. This takes a small step in synching down by storing the compiler options in dicts per language. Future work might be replacing the langauge strings with an enum, and defaultdict with a custom struct, just like `PerMachine` and `MachineChoice`. --- run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index 3237e85eb..005d9a003 100755 --- a/run_tests.py +++ b/run_tests.py @@ -126,7 +126,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.host['c']['args'] = FakeCompilerOptions() env.machines.host.cpu_family = 'x86_64' # Used on macOS inside find_library return env -- cgit v1.2.3