Skip to content

Commit

Permalink
Merge pull request #5661 from xmake-io/clangcl
Browse files Browse the repository at this point in the history
fix clang-cl toolchain #5658
  • Loading branch information
waruqi authored Sep 25, 2024
2 parents 2a4c217 + 54945dd commit 74a69b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/modules/detect/tools/find_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function main(opt)
--
-- TODO maybe we can use ml to improve it
else
local cl = assert(find_tool("cl", {envs = opt.envs}))
local is_clang_cl = toolchain and toolchain:name() == "clang-cl"
local cl = assert(find_tool(is_clang_cl and "clang-cl" or "cl", {envs = opt.envs}))

-- make an stub source file
local binaryfile = os.tmpfile() .. ".exe"
Expand Down

0 comments on commit 74a69b0

Please sign in to comment.