Pārlūkot izejas kodu

* clean up of previous fix

git-svn-id: trunk@8177 -
Jonas Maebe 18 gadi atpakaļ
vecāks
revīzija
661c2eba37
1 mainītis faili ar 13 papildinājumiem un 11 dzēšanām
  1. 13 11
      compiler/systems/t_bsd.pas

+ 13 - 11
compiler/systems/t_bsd.pas

@@ -366,17 +366,19 @@ begin
 
   if (not isdll) then
     begin
-      if  target_info.system in [system_powerpc_darwin,system_i386_darwin,system_powerpc64_darwin,system_x86_64_darwin] Then
-        LinkRes.Add('-arch');
-      case target_info.system of
-        system_powerpc_darwin:
-           LinkRes.Add('ppc');
-        system_i386_darwin:
-           LinkRes.Add('i386');
-        system_powerpc64_darwin:
-           LinkRes.Add('ppc64');
-        system_x86_64_darwin:
-           LinkRes.Add('x86_64');
+      if (target_info.system in systems_darwin) then
+        begin
+          LinkRes.Add('-arch');
+          case target_info.system of
+            system_powerpc_darwin:
+              LinkRes.Add('ppc');
+            system_i386_darwin:
+              LinkRes.Add('i386');
+            system_powerpc64_darwin:
+              LinkRes.Add('ppc64');
+            system_x86_64_darwin:
+              LinkRes.Add('x86_64');
+          end;
       end;
   end;
   { Write path to search libraries }