diff options
| author | Saikari <[email protected]> | 2026-02-02 15:29:11 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-02 15:29:11 +0300 |
| commit | fb950ed66855524a213ed9144c74bfa0f4f91f17 (patch) | |
| tree | dc68ec9eaa3cc1a3dfbccdb883fdaa3053ce9959 /tests/modules/stdin/test.lua | |
| parent | 7294865c853930c4a50009cf3be1f8d1b302198d (diff) | |
refactor: update MacOS handling in main function for xmake execution
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index d92b0f1f8..078d374ea 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -33,11 +33,10 @@ end function main(t) local xmake = path.translate(os.programfile()) - local is_ape = binutils.format(xmake) == "ape" local run_stdin = string.format('"%s" l --stdin', xmake) -- Fix pwsh and cosmocc "exec format error" for MacOS - if is_ape and not is_host("windows") then + if is_ape and is_host("macosx") then run_stdin = string.format("sh -c ' \"%s\" l --stdin '", xmake) end |
