Skip to content

Commit

Permalink
fix clang-cl toolchain #5658
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 25, 2024
1 parent 2a4c217 commit 54945dd
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 54945dd

Please sign in to comment.