diff options
Diffstat (limited to 'riscv_new/compiler/pp.pas')
-rw-r--r-- | riscv_new/compiler/pp.pas | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/riscv_new/compiler/pp.pas b/riscv_new/compiler/pp.pas index aec3a42891..7dd479d360 100644 --- a/riscv_new/compiler/pp.pas +++ b/riscv_new/compiler/pp.pas @@ -37,6 +37,7 @@ program pp; MIPSEL generate a compiler for the MIPSEL (Littel Endian) POWERPC generate a compiler for the PowerPC POWERPC64 generate a compiler for the PowerPC64 architecture + RISCV64 generate a compiler for the RiscV64 architecture SPARC generate a compiler for SPARC SPARC64 generate a compiler for SPARC64 X86_64 generate a compiler for the AMD x86-64 architecture @@ -163,6 +164,18 @@ program pp; {$endif CPUDEFINED} {$define CPUDEFINED} {$endif AARCH64} +{$ifdef RISCV32} + {$ifdef CPUDEFINED} + {$fatal ONLY one of the switches for the CPU type must be defined} + {$endif CPUDEFINED} + {$define CPUDEFINED} +{$endif RISCV32} +{$ifdef RISCV64} + {$ifdef CPUDEFINED} + {$fatal ONLY one of the switches for the CPU type must be defined} + {$endif CPUDEFINED} + {$define CPUDEFINED} +{$endif RISCV64} {$ifndef CPUDEFINED} {$fatal A CPU type switch must be defined} |