summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-08 21:17:45 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-08 21:17:45 +0000
commite57cb731532cfe91788823cd5b5b847311bd3920 (patch)
treea6aae940bc1ae3d448ef9048ca0e90693454736e
parentc56e3f0cdde9b5e3f8222ece7b5968ae9961955e (diff)
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
-rw-r--r--Makefile.rules3
-rw-r--r--runtime/libprofile/Makefile3
-rw-r--r--tools/lto/Makefile3
3 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index a52bb8029dc..ddf4d33d2f8 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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
diff --git a/runtime/libprofile/Makefile b/runtime/libprofile/Makefile
index 1ea08953387..e9b220cf2ff 100644
--- a/runtime/libprofile/Makefile
+++ b/runtime/libprofile/Makefile
@@ -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
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index 3e7621f6dbf..4a468dedf59 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -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