summaryrefslogtreecommitdiff
path: root/xmake/toolchains/llvm/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-23 00:27:31 +0800
committerruki <[email protected]>2024-05-23 00:27:31 +0800
commitbb7fa2ba468eb0f0b04266b597bfc562dcaa804e (patch)
tree812e358d1855e2eb5d2d44fb9c7f6e0dc546c754 /xmake/toolchains/llvm/check.lua
parent3ccf27073cb31c6d19be436c634ec1da9a460796 (diff)
improve to check llvm
Diffstat (limited to 'xmake/toolchains/llvm/check.lua')
-rw-r--r--xmake/toolchains/llvm/check.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/toolchains/llvm/check.lua b/xmake/toolchains/llvm/check.lua
index 1a61962fc..54ec397a5 100644
--- a/xmake/toolchains/llvm/check.lua
+++ b/xmake/toolchains/llvm/check.lua
@@ -75,7 +75,7 @@ function main(toolchain)
end
elseif is_host("windows") then
local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenv("PATH")}})
- if llvm_ar and llvm_ar.program and os.isfile(llvm_ar.program) then
+ if llvm_ar and llvm_ar.program and path.is_absolute(llvm_ar.program) then
bindir = path.directory(llvm_ar.program)
sdkdir = path.directory(bindir)
end