Skip to content

Commit

Permalink
Use a special path to place the .o files in.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165428 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Oct 8, 2012
1 parent c56e3f0 commit e57cb73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@ else
LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif
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)
endif
endif
Expand Down
3 changes: 2 additions & 1 deletion runtime/libprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ ifeq ($(HOST_OS),Darwin)

# If we're doing an Apple-style build, add the LTO object path.
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) \
-Wl,-object_path_lto -Wl,$(TempFile)
endif
Expand Down
3 changes: 2 additions & 1 deletion tools/lto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ ifeq ($(HOST_OS),Darwin)

# If we're doing an Apple-style build, add the LTO object path.
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) \
-Wl,-object_path_lto -Wl,$(TempFile)
endif
Expand Down

0 comments on commit e57cb73

Please sign in to comment.