[cfe-commits] r165184 - /cfe/trunk/tools/libclang/Makefile
Bill Wendling
isanbard at gmail.com
Wed Oct 3 16:49:57 PDT 2012
Author: void
Date: Wed Oct 3 18:49:57 2012
New Revision: 165184
URL: http://llvm.org/viewvc/llvm-project?rev=165184&view=rev
Log:
Add an explicit -object_path_lto flag during linking with a uniquified temporary
file name if building Apple-style.
Modified:
cfe/trunk/tools/libclang/Makefile
Modified: cfe/trunk/tools/libclang/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Makefile?rev=165184&r1=165183&r2=165184&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Makefile (original)
+++ cfe/trunk/tools/libclang/Makefile Wed Oct 3 18:49:57 2012
@@ -52,4 +52,10 @@
LLVMLibsOptions += -Wl,-install_name \
-Wl,"@rpath/lib$(LIBRARYNAME)$(SHLIBEXT)"
endif
+
+ # If we're doing an Apple-style build, add the LTO object path.
+ ifeq ($(RC_BUILDIT),YES)
+ TempFile = $(shell mktemp ${OBJROOT}/clang-lto.XXXXXX)
+ LLVMLibsOptions += -Wl,-object_path_lto -Wl,$(TempFile)
+ endif
endif
More information about the cfe-commits
mailing list