Skip to content

Commit

Permalink
Merge pull request #5129 from xmake-io/llvm
Browse files Browse the repository at this point in the history
Improve to find llvm
  • Loading branch information
waruqi authored May 22, 2024
2 parents 6746048 + 5779f5f commit 118daf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/toolchains/llvm/check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ 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")}})
if llvm_ar and llvm_ar.program and os.isfile(llvm_ar.program) then
local llvm_ar = find_tool("llvm-ar", {force = true, envs = {PATH = os.getenv("PATH")}})
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
Expand Down

0 comments on commit 118daf9

Please sign in to comment.