diff options
| author | Chan Lee <[email protected]> | 2024-12-28 20:56:14 +0800 |
|---|---|---|
| committer | Chan Lee <[email protected]> | 2024-12-28 20:56:14 +0800 |
| commit | 7f3f5b55c298e4402e50d3f323bfad4cd405ca43 (patch) | |
| tree | c5b912f1932314683061aa6b8b187c219611b33d /xmake/modules/package/tools/autoconf.lua | |
| parent | 4f408ebd0c944fecb9777c5b07ec57af1f5798b2 (diff) | |
zig cc: fix wrapper in Git Bash
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 345b0fde9..8c800c190 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -60,7 +60,11 @@ end function _translate_windows_bin_path(bin_path) if bin_path then local argv = os.argv(bin_path) - argv[1] = path.unix(argv[1]) .. ".exe" + argv[1] = path.unix(argv[1]) + local path_lower = argv[1]:lower() + if not path_lower:endswith(".exe") and not path_lower:endswith(".cmd") and not path_lower:endswith(".bat") then + argv[1] = argv[1] .. ".exe" + end return os.args(argv) end end |
