summaryrefslogtreecommitdiff
path: root/compiler/pp.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/pp.pas')
-rw-r--r--compiler/pp.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/pp.pas b/compiler/pp.pas
index 09c307b7b4..acb773bc98 100644
--- a/compiler/pp.pas
+++ b/compiler/pp.pas
@@ -153,6 +153,12 @@ program pp;
{$endif CPUDEFINED}
{$define CPUDEFINED}
{$endif AARCH64}
+{$ifdef JS}
+ {$ifdef CPUDEFINED}
+ {$fatal ONLY one of the switches for the CPU type must be defined}
+ {$endif CPUDEFINED}
+ {$define CPUDEFINED}
+{$endif}
{$ifndef CPUDEFINED}
{$fatal A CPU type switch must be defined}
{$endif CPUDEFINED}