Skip to contentSkip to conversation

tests/meson.build: use relative path to refer to files

PATCH New Changqing Li 1 participant 1 message Jan 14, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/meson.build: use relative path to refer to files

Fix error like:
Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long

when build path is too long, use meson.source_root() will make this filename too long. Fixed by using relative path to refer to files

---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/meson.build +1 -1
index 29ebaba48d..3b03c46c1e 100644
@@ -113,7 +113,7 @@ tests = {
   'test-keyval': [testqapi],
   'test-logging': [],
   'test-uuid': [],
-  'ptimer-test': ['ptimer-test-stubs.c', meson.source_root() / 'hw/core/ptimer.c'],
+  'ptimer-test': ['ptimer-test-stubs.c', '../hw/core/ptimer.c'],
   'test-qapi-util': [],
 }
 
Signature · 1 line
2.17.1