mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 22:49:23 +02:00
* 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 -
This commit is contained in:
parent
f9668f8c03
commit
ab51e8637c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user