aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/introspection.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-04-27 13:45:47 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2023-05-01 12:57:45 -0400
commit3162b901cab46d66a30c66a4406195523714ecdc (patch)
tree5d2440b532cf04a548359bac14542d028c63e5fc /mesonbuild/ast/introspection.py
parent01949df4f62258941c128150ecdb424aa9286f45 (diff)
downloadmeson-3162b901cab46d66a30c66a4406195523714ecdc.zip
meson-3162b901cab46d66a30c66a4406195523714ecdc.tar.gz
meson-3162b901cab46d66a30c66a4406195523714ecdc.tar.bz2
build: Process compilers before calling link() and link_whole()
To take good decisions we'll need to know if we are a Rust library which is only know after processing source files and compilers. Note that is it not the final list of compilers, some can be added in process_compilers_late(), but those are compilers for which we don't have source files any way.
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r--mesonbuild/ast/introspection.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index 3158aa2..d3849ab 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -283,8 +283,7 @@ class IntrospectionInterpreter(AstInterpreter):
kwargs_reduced['_allow_no_sources'] = True
target = targetclass(name, self.subdir, self.subproject, for_machine, empty_sources, [], objects,
self.environment, self.coredata.compilers[for_machine], kwargs_reduced)
- target.process_compilers()
- target.process_compilers_late([])
+ target.process_compilers_late()
new_target = {
'name': target.get_basename(),