Skip to content

Commit 118daf9

Browse files
authored
Merge pull request #5129 from xmake-io/llvm
Improve to find llvm
2 parents 6746048 + 5779f5f commit 118daf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmake/toolchains/llvm/check.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function main(toolchain)
7474
sdkdir = path.directory(bindir)
7575
end
7676
elseif is_host("windows") then
77-
local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenvs("PATH")}})
78-
if llvm_ar and llvm_ar.program and os.isfile(llvm_ar.program) then
77+
local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenv("PATH")}})
78+
if llvm_ar and llvm_ar.program and path.is_absolute(llvm_ar.program) then
7979
bindir = path.directory(llvm_ar.program)
8080
sdkdir = path.directory(bindir)
8181
end

0 commit comments

Comments
 (0)