diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-05 04:17:20 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-05 04:17:20 +0000 |
commit | 5d0f76199b4616b28b22013d84a3f5b0e303362e (patch) | |
tree | 91a32bae8b967442ffb82a83ddfb72fd4a84626b | |
parent | 195c6f36634ae1579d4457c188d9b058fbab9973 (diff) | |
download | external_llvm-5d0f76199b4616b28b22013d84a3f5b0e303362e.zip external_llvm-5d0f76199b4616b28b22013d84a3f5b0e303362e.tar.gz external_llvm-5d0f76199b4616b28b22013d84a3f5b0e303362e.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
-rw-r--r-- | tools/gold/CMakeLists.txt | 3 |
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() |