From 5cdb2e09ea9a9babf430aac01397665151f9518c Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 6 Mar 2024 20:26:04 +0100 Subject: use absolute path for llvm runtime libdir --- xmake/modules/core/tools/clang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 04c261879..5cd32ce04 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -280,7 +280,7 @@ function nf_runtime(self, runtime, opt) llvm_rootdir = _get_llvm_rootdir(self) end if llvm_rootdir then - local libdir = path.join(llvm_rootdir, "lib") + local libdir = path.absolute(path.join(llvm_rootdir, "lib")) maps["c++_static"] = table.join(maps["c++_static"], "-L" .. libdir) maps["c++_shared"] = table.join(maps["c++_shared"], "-L" .. libdir) -- sometimes llvm runtimes are located in a target-triple subfolder -- cgit v1.3.1