mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 11:38:19 +02:00
* WASI system.pp: check that WebAssembly threads are always turned off for the wasip1 target, and always turned on for the wasip1threads target
This commit is contained in:
parent
7703ff9b34
commit
0977f0ac0d
@ -23,6 +23,14 @@ interface
|
||||
{$ENDIF}
|
||||
|
||||
{$define FPC_IS_SYSTEM}
|
||||
|
||||
{$if defined(WASIp1threads) and not defined(FPC_WASM_THREADS)}
|
||||
{$fatal The wasip1threads target requires that WebAssembly threads are turned on! Maybe you want to use the wasip1 target, instead?}
|
||||
{$endif}
|
||||
{$if defined(WASIp1) and not defined(WASIp1threads) and defined(FPC_WASM_THREADS)}
|
||||
{$fatal The wasip1 target requires that WebAssembly threads are turned off! Maybe you want to use the wasip1threads target, instead?}
|
||||
{$endif}
|
||||
|
||||
{$ifdef FPC_WASM_THREADS}
|
||||
{$define DISABLE_NO_THREAD_MANAGER}
|
||||
{$else FPC_WASM_THREADS}
|
||||
|
Loading…
Reference in New Issue
Block a user