Skip to content

Commit 7dabd19

Browse files
committed
fix find gcc/clang
1 parent 529f999 commit 7dabd19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xmake/toolchains/clang/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ toolchain("clang" .. suffix)
5353
end
5454
end
5555

56-
return import("lib.detect.find_tool")("clang" .. suffix)
56+
return import("lib.detect.find_tool")("clang", {program = "clang" .. suffix})
5757
end)
5858

5959
on_load(function (toolchain)

xmake/toolchains/gcc/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ toolchain("gcc" .. suffix)
4343
set_toolset("as", "gcc" .. suffix)
4444

4545
on_check(function (toolchain)
46-
return import("lib.detect.find_tool")("gcc" .. suffix)
46+
return import("lib.detect.find_tool")("gcc", {program = "gcc" .. suffix})
4747
end)
4848

4949
on_load(function (toolchain)

0 commit comments

Comments
 (0)