From: Bill Wendling Date: Wed, 10 Oct 2012 05:29:15 +0000 (+0000) Subject: Place temporary LTO files into their own subdirectory. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c33b9304dada40806f875b482d003b5c7b8f9c22;p=oota-llvm.git Place temporary LTO files into their own subdirectory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165599 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.rules b/Makefile.rules index a52bb8029dc..b929ffea59f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -645,7 +645,7 @@ else LD.Flags += $(RPATH) -Wl,@executable_path/../lib endif ifeq ($(RC_BUILDIT),YES) - TempFile := $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX) + TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/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..6e9225382a9 100644 --- a/runtime/libprofile/Makefile +++ b/runtime/libprofile/Makefile @@ -51,7 +51,7 @@ 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) + TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/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..3610fed03ba 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -52,8 +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) - LLVMLibsOptions := $(LLVMLibsOptions) \ - -Wl,-object_path_lto -Wl,$(TempFile) + TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/llvm-lto.XXXXXX) + LLVMLibsOptions := $(LLVMLibsOptions) \ + -Wl,-object_path_lto -Wl,$(TempFile) endif endif