diff options
| author | ruki <[email protected]> | 2025-09-17 00:52:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-17 00:52:40 +0800 |
| commit | 63c49fb4d349a51899a04a6de77e79623cfa43f1 (patch) | |
| tree | 8881ca0d9d664fb7a3447148b29b1052aa060371 /xmake/modules | |
| parent | f9e895a3d33d021d4ddda6be9dfc4bacf358e6ea (diff) | |
improve to find gcc/clang
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/tools/find_clang.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_clangxx.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_gxx.lua | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_clang.lua b/xmake/modules/detect/tools/find_clang.lua index 764a7beb5..6f742b774 100644 --- a/xmake/modules/detect/tools/find_clang.lua +++ b/xmake/modules/detect/tools/find_clang.lua @@ -37,6 +37,7 @@ import("lib.detect.find_programver") -- function main(opt) opt = opt or {} + opt.norunfile = true local program = find_program(opt.program or "clang", opt) local version = nil if program and opt and opt.version then diff --git a/xmake/modules/detect/tools/find_clangxx.lua b/xmake/modules/detect/tools/find_clangxx.lua index c6dba4d6a..a48fa99cc 100644 --- a/xmake/modules/detect/tools/find_clangxx.lua +++ b/xmake/modules/detect/tools/find_clangxx.lua @@ -37,6 +37,7 @@ import("lib.detect.find_programver") -- function main(opt) opt = opt or {} + opt.norunfile = true local program = find_program(opt.program or "clang++", opt) local version = nil if program and opt and opt.version then diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index d63c5d1b6..b8c7b71a5 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -53,6 +53,7 @@ end -- function main(opt) opt = opt or {} + opt.norunfile = true local program = find_program(opt.program or "gcc", opt) local version = nil if program and opt.version then diff --git a/xmake/modules/detect/tools/find_gxx.lua b/xmake/modules/detect/tools/find_gxx.lua index f218dc415..c25248541 100644 --- a/xmake/modules/detect/tools/find_gxx.lua +++ b/xmake/modules/detect/tools/find_gxx.lua @@ -37,8 +37,8 @@ import("detect.tools.find_gcc") -- @endcode -- function main(opt) - opt = opt or {} + opt.norunfile = true local program = find_program(opt.program or "g++", opt) local version = nil if program and opt and opt.version then |
