summaryrefslogtreecommitdiff
path: root/xmake/toolchains/llvm/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 00:43:53 +0800
committerruki <[email protected]>2020-06-19 22:23:22 +0800
commit01dd21d4f3bccda1ff18ad1213b959feeaae37eb (patch)
tree6e6d2203e3da29323d2919d32b80303e5e98d489 /xmake/toolchains/llvm/check.lua
parentf5392149886b2083ec0d6db2adef3da405297fe8 (diff)
improve toolchain arch/plat
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 04d4d6dec..d590b4381 100644
--- a/xmake/toolchains/llvm/check.lua
+++ b/xmake/toolchains/llvm/check.lua
@@ -29,7 +29,7 @@ function main(toolchain)
local sdkdir = config.get("sdk")
local bindir = config.get("bin")
if not sdkdir and not bindir then
- if is_plat("linux") and os.isfile("/usr/bin/llvm-ar") then
+ if toolchain:is_plat("linux") and os.isfile("/usr/bin/llvm-ar") then
sdkdir = "/usr"
end
end