summaryrefslogtreecommitdiffstats
path: root/tools/driver
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-03-29 17:51:08 +0000
committerChris Bieneman <beanz@apple.com>2016-03-29 17:51:08 +0000
commite6d86e844af0c884f008877c9b74677a42862938 (patch)
tree055d1edec9fcdd01f30d3a77db3d014f2d1520a6 /tools/driver
parentef6fa17f79523b7547dbf5b2dc5c049b26f687af (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt
index bb631db79c..5f33885362 100644
--- a/tools/driver/CMakeLists.txt
+++ b/tools/driver/CMakeLists.txt
@@ -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()