diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-11-25 12:34:08 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-12 10:52:07 -0800 |
commit | 87766b37276164eaf359c9e99522dcd6a53be180 (patch) | |
tree | 487e5832508555065f48970d602ea69e51a250e4 /mesonbuild/environment.py | |
parent | 7460e4ccda339d167402bd077dcaa364fab5e172 (diff) | |
download | meson-87766b37276164eaf359c9e99522dcd6a53be180.zip meson-87766b37276164eaf359c9e99522dcd6a53be180.tar.gz meson-87766b37276164eaf359c9e99522dcd6a53be180.tar.bz2 |
Allow setting <lang>_args before the compiler is detected
This is required to be able to pass compiler and linker arguments to the
methods that try to guess what linker to use.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 8443a47..dc269d2 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1538,6 +1538,7 @@ class Environment: return comp def detect_compiler_for(self, lang: str, for_machine: MachineChoice): + self.coredata.add_lang_args(lang, for_machine, self) comp = self.compiler_from_language(lang, for_machine) if comp is not None: assert comp.for_machine == for_machine |