r259871 - [CMake] One more try to fix this.
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 19:02:40 PST 2016
Author: cbieneman
Date: Thu Feb 4 21:02:40 2016
New Revision: 259871
URL: http://llvm.org/viewvc/llvm-project?rev=259871&view=rev
Log:
[CMake] One more try to fix this.
This change will catch any bots that generated the order file that GNU ld doesn't like and delete it before trying to generate one that I think GNU ld will deal with.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=259871&r1=259870&r2=259871&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Feb 4 21:02:40 2016
@@ -595,6 +595,11 @@ endif()
set(CLANG_ORDER_FILE ${CMAKE_CURRENT_BINARY_DIR}/clang.order CACHE FILEPATH
"Order file to use when compiling clang in order to improve startup time.")
+file(READ ${CLANG_ORDER_FILE} order_file 20)
+if(order_file STREQUAL "")
+ file(REMOVE ${CLANG_ORDER_FILE})
+endif()
+
if(CLANG_ORDER_FILE AND NOT EXISTS ${CLANG_ORDER_FILE})
file(WRITE ${CLANG_ORDER_FILE} "\n")
endif()
More information about the cfe-commits
mailing list