From ab51e8637c2a8879c3745dba029b57590c279630 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 3 Feb 2019 21:00:36 +0000 Subject: [PATCH] * 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 - --- compiler/options.pas | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compiler/options.pas b/compiler/options.pas index 3109045269..cca46050bc 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -963,15 +963,27 @@ begin system_powerpc64_darwin, system_i386_darwin: 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'); MacOSXVersionMin:='10.4'; +{$endif llvm} end; system_x86_64_darwin: 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 with an x86-64 is still in use, so don't default to it } set_system_compvar('MAC_OS_X_VERSION_MIN_REQUIRED','1050'); MacOSXVersionMin:='10.5'; +{$endif llvm} end; system_arm_darwin, system_i386_iphonesim: