Browse Source

* the WASM define renamed WASM32

git-svn-id: branches/wasm@46250 -
nickysn 5 năm trước cách đây
mục cha
commit
39c5f11ec6
3 tập tin đã thay đổi với 7 bổ sung6 xóa
  1. 2 1
      compiler/fpcdefs.inc
  2. 3 3
      compiler/pp.pas
  3. 2 2
      compiler/ppcwasm32.lpi

+ 2 - 1
compiler/fpcdefs.inc

@@ -376,7 +376,8 @@
   {$define symansistr}
 {$endif}
 
-{$ifdef wasm}
+{$ifdef wasm32}
+  {$define wasm}
   {$define cpu32bit}
   {$define cpu64bitalu}
   {$define cpu32bitaddr}

+ 3 - 3
compiler/pp.pas

@@ -41,7 +41,7 @@ program pp;
   RISCV64             generate a compiler for the RiscV64 architecture
   SPARC               generate a compiler for SPARC
   SPARC64             generate a compiler for SPARC64
-  WASM                generate a compiler for WebAssembly
+  WASM32              generate a compiler for WebAssembly 32-bit
   X86_64              generate a compiler for the AMD x86-64 architecture
   XTENSA              generate a compiler for XTENSA
   Z80                 generate a compiler for Z80
@@ -195,12 +195,12 @@ program pp;
   {$endif CPUDEFINED}
   {$define CPUDEFINED}
 {$endif Z80}
-{$ifdef WASM}
+{$ifdef WASM32}
   {$ifdef CPUDEFINED}
     {$fatal ONLY one of the switches for the CPU type must be defined}
   {$endif CPUDEFINED}
   {$define CPUDEFINED}
-{$endif WASM}
+{$endif WASM32}
 
 {$ifndef CPUDEFINED}
   {$fatal A CPU type switch must be defined}

+ 2 - 2
compiler/ppcwasm32.lpi

@@ -12,7 +12,7 @@
       </Flags>
       <SessionStorage Value="InProjectDir"/>
       <MainUnit Value="0"/>
-      <Title Value="ppcwasm"/>
+      <Title Value="ppcwasm32"/>
     </General>
     <BuildModes Count="1">
       <Item1 Name="default" Default="True"/>
@@ -61,7 +61,7 @@
       <ConfigFile>
         <StopAfterErrCount Value="50"/>
       </ConfigFile>
-      <CustomOptions Value="-dwasm
+      <CustomOptions Value="-dwasm32
 -dnoopt"/>
     </Other>
   </CompilerOptions>