mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 16:26:13 +02:00
+ support wasm32 in the fpc utility
git-svn-id: branches/wasm@46294 -
This commit is contained in:
parent
545790b0e5
commit
ee711eb943
@ -184,6 +184,10 @@ program fpc;
|
|||||||
ppcbin:='ppcxtensa';
|
ppcbin:='ppcxtensa';
|
||||||
processorname:='xtensa';
|
processorname:='xtensa';
|
||||||
{$endif xtensa}
|
{$endif xtensa}
|
||||||
|
{$ifdef wasm32}
|
||||||
|
ppcbin:='ppcwasm32';
|
||||||
|
processorname:='wasm32';
|
||||||
|
{$endif wasm32}
|
||||||
versionstr:=''; { Default is just the name }
|
versionstr:=''; { Default is just the name }
|
||||||
if ParamCount = 0 then
|
if ParamCount = 0 then
|
||||||
begin
|
begin
|
||||||
@ -271,6 +275,8 @@ program fpc;
|
|||||||
cpusuffix:='xtensa'
|
cpusuffix:='xtensa'
|
||||||
else if processorstr='z80' then
|
else if processorstr='z80' then
|
||||||
cpusuffix:='z80'
|
cpusuffix:='z80'
|
||||||
|
else if processorstr='wasm32' then
|
||||||
|
cpusuffix:='wasm32'
|
||||||
else
|
else
|
||||||
error('Illegal processor type "'+processorstr+'"');
|
error('Illegal processor type "'+processorstr+'"');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user