summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-06 00:36:33 +0800
committerruki <[email protected]>2026-02-06 00:36:33 +0800
commit330cd8afb5441ae548be970f2b248feb8b3d4340 (patch)
treea3820a6ff81ef18a25ef34ada80027b2f14d92cf
parentf84347ec241e9edc94c1f43f1e3450d49a7c4262 (diff)
fix os.isexec
-rw-r--r--xmake/core/base/os.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 0b8e2e6ab..ae730738e 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -1187,7 +1187,11 @@ function os.isexec(filepath)
end
end
elseif os.isfile(filepath) then
- return os._access and os._access(filepath, "x") or true
+ if os._access then
+ return os._access(filepath, "x")
+ else
+ return true
+ end
end
return false
end