Place temporary LTO files into their own subdirectory.
[oota-llvm.git] / runtime / libprofile / Makefile
index 1ea08953387f932377e6cca2a6d9ec0dc6cdbcd6..6e9225382a9e724f041b4ebfbbcda548117dd1da 100644 (file)
@@ -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