summaryrefslogtreecommitdiff
path: root/unittests/allplatformstests.py
diff options
context:
space:
mode:
authorFlorian "sp1rit"​ <sp1rit@disroot.org>2025-07-31 10:10:44 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-08-10 22:38:30 +0300
commit651aede977179c5fe382744e3dd91ca8e01d050c (patch)
tree5ca295a29b89a2baa1a76f1a2af6d74cb5167737 /unittests/allplatformstests.py
parentf49bdd473ca063c9e928c2e96bdb30582d2129bf (diff)
downloadmeson-651aede977179c5fe382744e3dd91ca8e01d050c.tar.gz
build: Throw an error instead of warning for sourceless targets
We might run into an assertion failure down the road, if we don't fail here. Specifically project('proj') executable('bin', 'header.h') will throw during the ninja generation.
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 04cbfc690..ebcb1f53c 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -4819,7 +4819,7 @@ class AllPlatformTests(BasePlatformTests):
for_machine=MachineChoice.HOST, sources=[],
structured_sources=None,
objects=[], environment=env, compilers=env.coredata.compilers[MachineChoice.HOST],
- kwargs={})
+ kwargs={'_allow_no_sources': True})
target.process_compilers_late()
return target.filename