projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aab7f4
)
[Order Files] Fix order file usage
author
Chris Bieneman
<beanz@apple.com>
Tue, 29 Mar 2016 17:51:08 +0000
(17:51 +0000)
committer
Chris 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.
llvm-svn: 264757
clang/tools/driver/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/clang/tools/driver/CMakeLists.txt
b/clang/tools/driver/CMakeLists.txt
index
bb631db
..
5f33885
100644
(file)
--- a/
clang/tools/driver/CMakeLists.txt
+++ b/
clang/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()