summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-30 22:41:30 +0800
committerruki <[email protected]>2026-01-30 22:41:30 +0800
commit8a9d19e08aea07be760882d629fa90f4ab7c2da3 (patch)
tree511a6dedd30c12e0a1b9da4b9f6d0b95ec52a06d /xmake/core/base/os.lua
parent9b87a6b6885d004d445f021b9536d08a18225351 (diff)
detect ape format
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 6ffa08f74..ba3feca2d 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -1152,7 +1152,7 @@ function os.isexec(filepath)
assert(filepath)
if os.host() == "windows" then
- local exts = {".exe", ".cmd", ".bat", ".ps1", ".sh"}
+ local exts = {".exe", ".com", ".cmd", ".bat", ".ps1", ".sh"}
if os.isfile(filepath) then
-- detect file extension first
local extension = path.extension(filepath):lower()
@@ -1166,7 +1166,7 @@ function os.isexec(filepath)
if binutils and binutils.format then
format = binutils.format(filepath)
end
- if format == "pe" or format == "shebang" then
+ if format == "pe" or format == "ape" or format == "shebang" then
return true
end
end