Pārlūkot izejas kodu

* define CPULLVM for compilers with an llvm-based code generator (in addition
to the regular CPUXXX define for the target architecture)

git-svn-id: branches/debug_eh@40434 -

Jonas Maebe 6 gadi atpakaļ
vecāks
revīzija
a1db586c81
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      compiler/options.pas

+ 3 - 0
compiler/options.pas

@@ -3413,6 +3413,9 @@ procedure read_arguments(cmd:TCmdStr);
       controller: tcontrollertype;
       controller: tcontrollertype;
       s: string;
       s: string;
     begin
     begin
+{$ifdef llvm}
+      def_system_macro('CPULLVM');
+{$endif}
       for cputype:=low(tcputype) to high(tcputype) do
       for cputype:=low(tcputype) to high(tcputype) do
         undef_system_macro('CPU'+Cputypestr[cputype]);
         undef_system_macro('CPU'+Cputypestr[cputype]);
       def_system_macro('CPU'+Cputypestr[init_settings.cputype]);
       def_system_macro('CPU'+Cputypestr[init_settings.cputype]);