r264757 - [Order Files] Fix order file usage
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 29 10:51:08 PDT 2016
Author: cbieneman
Date: Tue Mar 29 12:51:08 2016
New Revision: 264757
URL: http://llvm.org/viewvc/llvm-project?rev=264757&view=rev
Log:
[Order Files] Fix order file usage
The CMake EXISTS operator needs to have the variable expanded. Not expanding this was causing the if statement to always be false, which made it impossible to pass linker order files in.
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=264757&r1=264756&r2=264757&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Tue Mar 29 12:51:08 2016
@@ -87,7 +87,7 @@ if (APPLE)
set(TOOL_INFO_BUILD_VERSION)
endif()
-if(CLANG_ORDER_FILE AND EXISTS CLANG_ORDER_FILE)
+if(CLANG_ORDER_FILE AND EXISTS ${CLANG_ORDER_FILE})
target_link_libraries(clang "-Wl,-order_file,${CLANG_ORDER_FILE}")
endif()
More information about the cfe-commits
mailing list