summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-11-14 23:50:14 +0800
committerruki <[email protected]>2018-11-14 17:01:26 +0800
commit1feb7be8eca85f724b52fa875951179c52f9d018 (patch)
tree1f0ed781894784c33e914bb39561528daeb57565 /xmake/core/base/os.lua
parenta4b58d86da4cf3df4aeae5f390eaa1b69b8fffe8 (diff)
check gcc.cmd for android ndk on windows
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index ef9455955..cad001996 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -718,8 +718,10 @@ function os.isexec(filepath)
-- check permission
-- is *.exe for windows?
- if os.host() == "windows" and not filepath:find("%.exe") then
- filepath = filepath .. ".exe"
+ if os.host() == "windows" then
+ if not filepath:endswith(".exe") and not filepath:endswith(".cmd") and not filepath:endswith(".bat") then
+ filepath = filepath .. ".exe"
+ end
end
-- file exists?