From e57cb731532cfe91788823cd5b5b847311bd3920 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 8 Oct 2012 21:17:45 +0000 Subject: 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 --- runtime/libprofile/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime') 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 -- cgit v1.2.3