From 438a5a9dea35a42bd65c4983d5654ee99ed17bc0 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 30 Jan 2026 22:45:07 +0800 Subject: add some comments --- xmake/core/base/os.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 24e055eb9..4263cf659 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -1158,6 +1158,12 @@ function os.isexec(filepath) return true end else + -- detect executable file header + -- + -- @note only for files without extension, because .dll is also PE + -- pe: native windows executables + -- ape: cosmocc/APE executables (e.g. `cosmocc -o foo.exe ...`) + -- shebang: scripts starting with `#!` local format = nil if binutils and binutils.format then format = binutils.format(filepath) -- cgit v1.3.1