Use a special path to place the .o files in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-10-08 21:17:45 +00:00
parent c56e3f0cdd
commit e57cb73153
3 changed files with 6 additions and 3 deletions

View File

@ -645,7 +645,8 @@ else
LD.Flags += $(RPATH) -Wl,@executable_path/../lib LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif endif
ifeq ($(RC_BUILDIT),YES) ifeq ($(RC_BUILDIT),YES)
TempFile := $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX) ObjDir := $(shell mkdir -p ${OBJROOT}/dSYMs)
TempFile := $(shell mktemp ${ObjDir}/llvm-lto.XXXXXX)
LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile) LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile)
endif endif
endif endif

View File

@ -51,7 +51,8 @@ ifeq ($(HOST_OS),Darwin)
# If we're doing an Apple-style build, add the LTO object path. # If we're doing an Apple-style build, add the LTO object path.
ifeq ($(RC_BUILDIT),YES) ifeq ($(RC_BUILDIT),YES)
TempFile = $(shell mktemp ${OBJROOT}/profile_rt-lto.XXXXXX) ObjDir := $(shell mkdir -p ${OBJROOT}/dSYMs)
TempFile := $(shell mktemp ${ObjDir}/profile_rt-lto.XXXXXX)
LLVMLibsOptions := $(LLVMLibsOptions) \ LLVMLibsOptions := $(LLVMLibsOptions) \
-Wl,-object_path_lto -Wl,$(TempFile) -Wl,-object_path_lto -Wl,$(TempFile)
endif endif

View File

@ -52,7 +52,8 @@ ifeq ($(HOST_OS),Darwin)
# If we're doing an Apple-style build, add the LTO object path. # If we're doing an Apple-style build, add the LTO object path.
ifeq ($(RC_BUILDIT),YES) ifeq ($(RC_BUILDIT),YES)
TempFile = $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX) ObjDir := $(shell mkdir -p ${OBJROOT}/dSYMs)
TempFile := $(shell mktemp ${ObjDir}/llvm-lto.XXXXXX)
LLVMLibsOptions := $(LLVMLibsOptions) \ LLVMLibsOptions := $(LLVMLibsOptions) \
-Wl,-object_path_lto -Wl,$(TempFile) -Wl,-object_path_lto -Wl,$(TempFile)
endif endif