Sfoglia il codice sorgente

iphonesim: use ios_simulator_version_min

The linker expects ios_simulator_version_min rather than -iphoneos_version_min
when targeting the iOS simulator platform. Fixes compilation with Xcode 11
toolchains, which is more strict about this.
Jonas Maebe 3 anni fa
parent
commit
3263e12a3e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      compiler/systems/t_darwin.pas

+ 4 - 1
compiler/systems/t_darwin.pas

@@ -352,7 +352,10 @@ implementation
           end
         else if iPhoneOSVersionMin<>'' then
           begin
-            result:='-iphoneos_version_min '+iPhoneOSVersionMin;
+            if target_info.system in [system_i386_iphonesim,system_x86_64_iphonesim] then
+              result:='-ios_simulator_version_min '+iPhoneOSVersionMin
+            else
+              result:='-iphoneos_version_min '+iPhoneOSVersionMin;
           end
         else
           begin