diff --git a/tools/libclang/Makefile b/tools/libclang/Makefile index 5fdfd0ebb5..93f63cf86c 100644 --- a/tools/libclang/Makefile +++ b/tools/libclang/Makefile @@ -55,7 +55,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}/clang-lto.XXXXXX) + TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/clang-lto.XXXXXX) LLVMLibsOptions += -Wl,-object_path_lto -Wl,$(TempFile) endif endif