Change compiler defaults for raspbian
authorPeter Michael Green <plugwash@debian.org>
Sun, 24 Dec 2023 10:36:38 +0000 (10:36 +0000)
committerRaspbian forward porter <root@raspbian.org>
Sun, 24 Dec 2023 10:36:38 +0000 (10:36 +0000)
We need armv6 and vfpv2 rather than armv7 and vfpv3-d16

Gbp-Pq: Name raspbian.diff

fpcsrc/compiler/options.pas

index fe9a36979d20ed610ce6a66b7724c3328f4239d1..89383b07e34d37767dc9c3a209b3dde2bcfdcfbd 100644 (file)
@@ -4091,25 +4091,15 @@ begin
       end;
   end;
 
+
   { ARMHF defaults }
   if (target_info.abi = abi_eabihf) then
-    { set default cpu type to ARMv7a for ARMHF unless specified otherwise }
+    { set default cpu type to ARMv6 for ARMHF unless specified otherwise }
     begin
-    {$ifdef CPUARMV6}
-      { if the compiler is built for armv6, then
-        inherit this setting, e.g. Raspian is armhf but
-        only armv6, this makes rebuilds of the compiler
-        easier }
       if not option.CPUSetExplicitly then
         init_settings.cputype:=cpu_armv6;
       if not option.OptCPUSetExplicitly then
         init_settings.optimizecputype:=cpu_armv6;
-    {$else CPUARMV6}
-      if not option.CPUSetExplicitly then
-        init_settings.cputype:=cpu_armv7a;
-      if not option.OptCPUSetExplicitly then
-        init_settings.optimizecputype:=cpu_armv7a;
-    {$endif CPUARMV6}
 
       { Set FPU type }
       if not(option.FPUSetExplicitly) then