Set the deployment target for Apple llvmCore builds. <rdar://problem/12712431>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson
2013-02-05 17:29:03 +00:00
parent 97ebecaa79
commit cdb0a58f88
3 changed files with 37 additions and 8 deletions
+12 -4
View File
@@ -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