From 330cd8afb5441ae548be970f2b248feb8b3d4340 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 6 Feb 2026 00:36:33 +0800 Subject: fix os.isexec --- xmake/core/base/os.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1