diff options
Diffstat (limited to 'riscv/trunk/compiler/pp.pas')
-rw-r--r-- | riscv/trunk/compiler/pp.pas | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/riscv/trunk/compiler/pp.pas b/riscv/trunk/compiler/pp.pas index 8bd4a53c1d..90353cdc65 100644 --- a/riscv/trunk/compiler/pp.pas +++ b/riscv/trunk/compiler/pp.pas @@ -134,6 +134,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} {$endif CPUDEFINED} |