diff options
| -rw-r--r-- | xmake/core/base/os.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 8a9cde4cd..963a015c1 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -1157,7 +1157,10 @@ function os.isexec(filepath) -- check executable program exist if os.isfile(filepath) then if os.host() == "windows" then - return true + local ext = path.extension(filepath):lower() + if ext == ".exe" or ext == ".cmd" or ext == ".bat" then + return true + end else return os._access(filepath, "x") end |
