aboutsummaryrefslogtreecommitdiff
path: root/unittests
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 /unittests
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 'unittests')
-rw-r--r--unittests/allplatformstests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index d6ff3b0..b003ddd 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -4376,8 +4376,7 @@ class AllPlatformTests(BasePlatformTests):
structured_sources=None,
objects=[], environment=env, compilers=env.coredata.compilers[MachineChoice.HOST],
kwargs={})
- target.process_compilers()
- target.process_compilers_late([])
+ target.process_compilers_late()
return target.filename
shared_lib_name = lambda name: output_name(name, SharedLibrary)