Skip to content

Commit bb7fa2b

Browse files
committed
improve to check llvm
1 parent 3ccf270 commit bb7fa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/toolchains/llvm/check.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function main(toolchain)
7575
end
7676
elseif is_host("windows") then
7777
local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenv("PATH")}})
78-
if llvm_ar and llvm_ar.program and os.isfile(llvm_ar.program) then
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)