summaryrefslogtreecommitdiff
path: root/xmake/toolchains
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-23 00:27:18 +0800
committerruki <[email protected]>2024-05-23 00:27:18 +0800
commit3ccf27073cb31c6d19be436c634ec1da9a460796 (patch)
treec37bf69f182da77b9748f56166653178edd03e19 /xmake/toolchains
parent674604842657f3d6a2f998ecc414d2666e9df34a (diff)
fix find llvm-ar
Diffstat (limited to 'xmake/toolchains')
-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 6fe57b2aa..1a61962fc 100644
--- a/xmake/toolchains/llvm/check.lua
+++ b/xmake/toolchains/llvm/check.lua
@@ -74,7 +74,7 @@ function main(toolchain)
sdkdir = path.directory(bindir)
end
elseif is_host("windows") then
- local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenvs("PATH")}})
+ 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
bindir = path.directory(llvm_ar.program)
sdkdir = path.directory(bindir)