diff options
| author | Damian Höster <[email protected]> | 2026-08-23 18:29:29 +0200 |
|---|---|---|
| committer | Damian Höster <[email protected]> | 2026-08-23 18:29:29 +0200 |
| commit | 58983968519544cef4b4cebc08054c3843ba5a55 (patch) | |
| tree | 2539026601fdaf793359cf85f4bf521ec3e78c0c | |
| parent | 54dcc7b47b473dd9b065b13ce7da97b80b1e9649 (diff) | |
simplify
| -rw-r--r-- | xmake/toolchains/mingw/check.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/xmake/toolchains/mingw/check.lua b/xmake/toolchains/mingw/check.lua index 104130fee..15cfe510a 100644 --- a/xmake/toolchains/mingw/check.lua +++ b/xmake/toolchains/mingw/check.lua @@ -44,24 +44,6 @@ function main(toolchain) }) end if mingw then - local bindir = mingw.bindir or path.join(mingw.sdkdir, "bin") - local cross = mingw.cross or "" - local is_win = is_host("windows") - local gcc = path.join(bindir, cross .. (is_win and "gcc.exe" or "gcc")) - local clang = path.join(bindir, cross .. (is_win and "clang.exe" or "clang")) - local use_clang = toolchain:config("clang") - if use_clang then - if not os.isexec(clang) then - return false - end - elseif use_clang == false then - if not os.isexec(gcc) then - return false - end - elseif (not os.isexec(gcc) or (mingw.sdkdir and mingw.sdkdir:find("llvm-mingw", 1, true))) - and os.isexec(clang) then - toolchain:config_set("clang", true) - end toolchain:config_set("mingw", mingw.sdkdir) toolchain:config_set("cross", mingw.cross) toolchain:config_set("bindir", mingw.bindir) |
