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
This commit is contained in:
Peter Collingbourne 2011-11-05 04:17:20 +00:00
parent 195c6f3663
commit 5d0f76199b

View File

@ -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()