From 39a3f5a67817cbb4e1d267775cfc752b21158b7a Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Sat, 15 Mar 2025 14:53:25 +0000 Subject: [PATCH] Handle executable extension for WASI OSes --- packages/fpmkunit/src/fpmkunit.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/fpmkunit/src/fpmkunit.pp b/packages/fpmkunit/src/fpmkunit.pp index 209b20c2ba..05b7c37a6a 100644 --- a/packages/fpmkunit/src/fpmkunit.pp +++ b/packages/fpmkunit/src/fpmkunit.pp @@ -315,6 +315,7 @@ Const DLLExt = '.dll'; AIXSharedLibExt = '.a'; ExeExt = '.exe'; + WasiExeExt = '.wasm'; DbgExt = '.dbg'; ZipExt = '.zip'; FpmkExt = '.fpm'; @@ -2958,6 +2959,8 @@ function AddProgramExtension(const ExecutableName: string; AOS : TOS): string; begin if AOS in [Go32v2,Win32,Win64,Wince,OS2,EMX,Watcom] then Result:=ExecutableName+ExeExt + else if AOS in [wasip1,wasip1threads,wasip2] then + Result:=ExecutableName+WasiExeExt else Result:=ExecutableName; end;