]> granicus.if.org Git - clang/commitdiff
[Order Files] Fix order file usage
authorChris Bieneman <beanz@apple.com>
Tue, 29 Mar 2016 17:51:08 +0000 (17:51 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 29 Mar 2016 17:51:08 +0000 (17:51 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264757 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/CMakeLists.txt

index bb631db79c3f22337e58e355555b402267eca6ce..5f338853629e839d48cb6d1951f300844fed710c 100644 (file)
@@ -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()