Bläddra i källkod

* set default Mac OS X target version to 10.6 for LLVM (earlier versions did
not include libunwind in libSystem, causing linking errors when compiling
on later versions)

git-svn-id: trunk@41200 -

Jonas Maebe 6 år sedan
förälder
incheckning
ab51e8637c
1 ändrade filer med 12 tillägg och 0 borttagningar
  1. 12 0
      compiler/options.pas

+ 12 - 0
compiler/options.pas

@@ -963,15 +963,27 @@ begin
     system_powerpc64_darwin,
     system_powerpc64_darwin,
     system_i386_darwin:
     system_i386_darwin:
       begin
       begin
+{$ifdef llvm}
+        { We only support libunwind as part of libsystem }
+        set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1060');
+        MacOSXVersionMin:='10.6';
+{$else llvm}
         set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1040');
         set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1040');
         MacOSXVersionMin:='10.4';
         MacOSXVersionMin:='10.4';
+{$endif llvm}
       end;
       end;
     system_x86_64_darwin:
     system_x86_64_darwin:
       begin
       begin
+{$ifdef llvm}
+        { We only support libunwind as part of libsystem }
+        set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1060');
+        MacOSXVersionMin:='10.6';
+{$else llvm}
         { actually already works on 10.4, but it's unlikely any 10.4 system
         { actually already works on 10.4, but it's unlikely any 10.4 system
           with an x86-64 is still in use, so don't default to it }
           with an x86-64 is still in use, so don't default to it }
         set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1050');
         set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1050');
         MacOSXVersionMin:='10.5';
         MacOSXVersionMin:='10.5';
+{$endif llvm}
       end;
       end;
     system_arm_darwin,
     system_arm_darwin,
     system_i386_iphonesim:
     system_i386_iphonesim: