r259864 - [CMake] Trying to fix a bot failure I introduced in r259862
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 17:27:32 PST 2016
Author: cbieneman
Date: Thu Feb 4 19:27:31 2016
New Revision: 259864
URL: http://llvm.org/viewvc/llvm-project?rev=259864&view=rev
Log:
[CMake] Trying to fix a bot failure I introduced in r259862
CMake caching behavior makes me sad.
Modified:
cfe/trunk/tools/driver/CMakeLists.txt
Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=259864&r1=259863&r2=259864&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Thu Feb 4 19:27:31 2016
@@ -90,7 +90,7 @@ endif()
check_cxx_compiler_flag("-Wl,-order_file,${CLANG_ORDER_FILE}"
LINKER_HAS_ORDER_FILE_FLAG)
-if(LINKER_HAS_ORDER_FILE_FLAG)
+if(LINKER_HAS_ORDER_FILE_FLAG AND CLANG_ORDER_FILE)
target_link_libraries(clang "-Wl,-order_file,${CLANG_ORDER_FILE}")
set_target_properties(clang PROPERTIES LINK_DEPENDS ${CLANG_ORDER_FILE})
endif()
More information about the cfe-commits
mailing list