diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-09-03 12:27:47 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-07 06:55:07 -0400 |
commit | 025aea1dab4bcf9aafdd72acf48476d999a729b9 (patch) | |
tree | 3e5c4922fa963870fe07c5457123be325c79be6d /mesonbuild | |
parent | d5f17bc9ffea9537057eb249fc68776eb53d5f58 (diff) | |
download | meson-025aea1dab4bcf9aafdd72acf48476d999a729b9.zip meson-025aea1dab4bcf9aafdd72acf48476d999a729b9.tar.gz meson-025aea1dab4bcf9aafdd72acf48476d999a729b9.tar.bz2 |
Compiler checks must use per-subproject options
Fixes: #12202
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/interpreter/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/compiler.py b/mesonbuild/interpreter/compiler.py index b6a1a85..5528abe 100644 --- a/mesonbuild/interpreter/compiler.py +++ b/mesonbuild/interpreter/compiler.py @@ -261,7 +261,7 @@ class CompilerHolder(ObjectHolder['Compiler']): for idir in i.to_string_list(self.environment.get_source_dir(), self.environment.get_build_dir()): args.extend(self.compiler.get_include_args(idir, False)) if not kwargs['no_builtin_args']: - opts = self.environment.coredata.options + opts = coredata.OptionsView(self.environment.coredata.options, self.subproject) args += self.compiler.get_option_compile_args(opts) if mode is CompileCheckMode.LINK: args.extend(self.compiler.get_option_link_args(opts)) |