mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:09:20 +02:00
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.
(cherry picked from commit 3263e12a3e
)
This commit is contained in:
parent
29d0a2a70a
commit
383c4a8e04
@ -365,7 +365,10 @@ implementation
|
|||||||
end
|
end
|
||||||
else if iPhoneOSVersionMin<>'' then
|
else if iPhoneOSVersionMin<>'' then
|
||||||
begin
|
begin
|
||||||
LinkRes.Add('-iphoneos_version_min');
|
if target_info.system in [system_i386_iphonesim,system_x86_64_iphonesim] then
|
||||||
|
LinkRes.Add('-ios_simulator_version_min')
|
||||||
|
else
|
||||||
|
LinkRes.Add('-iphoneos_version_min');
|
||||||
LinkRes.Add(iPhoneOSVersionMin);
|
LinkRes.Add(iPhoneOSVersionMin);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user