From 78793878611786c74714f3ec66551cb9050b4077 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Sun, 24 Dec 2023 12:22:59 +0200 Subject: [PATCH] * enable the WASM internal linker, in case the compiler is compiled with the ENABLE_WASM_INTERNAL_LINKER define --- compiler/ppcwasm32.lpi | 6 ++++-- compiler/systems/i_wasi.pas | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/compiler/ppcwasm32.lpi b/compiler/ppcwasm32.lpi index 4a44dbc33f..bdbbac71b6 100644 --- a/compiler/ppcwasm32.lpi +++ b/compiler/ppcwasm32.lpi @@ -65,12 +65,14 @@ - +-dDEBUG_WASM_GOTO +-dENABLE_WASM_INTERNAL_LINKER"/> + + diff --git a/compiler/systems/i_wasi.pas b/compiler/systems/i_wasi.pas index a3bc45592c..e875fd0c99 100644 --- a/compiler/systems/i_wasi.pas +++ b/compiler/systems/i_wasi.pas @@ -79,7 +79,11 @@ unit i_wasi; dirsep : '/'; assem : as_wasm32_wasm; assemextern : as_wasm32_llvm_mc; +{$ifdef ENABLE_WASM_INTERNAL_LINKER} + link : ld_int_wasi; +{$else ENABLE_WASM_INTERNAL_LINKER} link : ld_none; +{$endif ENABLE_WASM_INTERNAL_LINKER} linkextern : ld_wasi; ar : ar_none; res : res_none;