qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Changqing Li
Subject: [PATCH] tests/meson.build: use relative path to refer to files
Date: Thu, 14 Jan 2021 15:38:07 +0800

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

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 29ebaba48d..3b03c46c1e 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -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': [],
 }
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]