Skip to content

Commit

Permalink
use absolute path for llvm runtime libdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Mar 6, 2024
1 parent fa9ee3e commit 5cdb2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/core/tools/clang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cdb2e0

Please sign in to comment.