From cdb0a58f88c7e17620286b78390d56597ef01dda Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 5 Feb 2013 17:29:03 +0000 Subject: Set the deployment target for Apple llvmCore builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174397 91177308-0d34-0410-b5e6-96231b3b80d8 --- projects/sample/Makefile.llvm.rules | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'projects') diff --git a/projects/sample/Makefile.llvm.rules b/projects/sample/Makefile.llvm.rules index 5d67461285..30f54c45e2 100644 --- a/projects/sample/Makefile.llvm.rules +++ b/projects/sample/Makefile.llvm.rules @@ -501,16 +501,24 @@ ifeq ($(HOST_OS),Darwin) LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress SharedLinkOptions := -dynamiclib - ifneq ($(ARCH),ARM) - SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION) + ifdef DEPLOYMENT_TARGET + SharedLinkOptions += $(DEPLOYMENT_TARGET) + else + ifneq ($(ARCH),ARM) + SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION) + endif endif else SharedLinkOptions=-shared endif ifeq ($(TARGET_OS),Darwin) - ifneq ($(ARCH),ARM) - TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION) + ifdef DEPLOYMENT_TARGET + TargetCommonOpts += $(DEPLOYMENT_TARGET) + else + ifneq ($(ARCH),ARM) + TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION) + endif endif endif -- cgit v1.2.3-18-g5258