aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-05 04:17:20 +0000
committerStephen Hines <srhines@google.com>2011-11-14 09:11:50 -0800
commitb2d3e70f5a6048054c136e2c28104fca9ff99f7c (patch)
tree13831fbec46a7cf173388150cd9f875c20c894f9 /tools
parent89813471cb8b0d394bf15d5f9bd1d0a9d8c46b5b (diff)
downloadexternal_llvm-b2d3e70f5a6048054c136e2c28104fca9ff99f7c.zip
external_llvm-b2d3e70f5a6048054c136e2c28104fca9ff99f7c.tar.gz
external_llvm-b2d3e70f5a6048054c136e2c28104fca9ff99f7c.tar.bz2
Use absolute path to exportsfile in gold plugin CMake build.
(Ninja generator requirement.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gold/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gold/CMakeLists.txt b/tools/gold/CMakeLists.txt
index eb4b6e6..2cc132f 100644
--- a/tools/gold/CMakeLists.txt
+++ b/tools/gold/CMakeLists.txt
@@ -40,6 +40,7 @@ else()
set_property(SOURCE gold-plugin.cpp APPEND PROPERTY
OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/exportsfile)
- target_link_libraries(LLVMgold LTO -Wl,--version-script,exportsfile)
+ target_link_libraries(LLVMgold LTO
+ -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/exportsfile)
add_dependencies(LLVMgold gold_exports)
endif()