diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-28 08:18:22 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-28 08:18:22 +0000 |
commit | d7797496a36b46fc8a1c6a96c8a2ccbe53929567 (patch) | |
tree | 2cbcc2f9c6d421dfcf88a6b905aca9adef211840 /tools/CMakeLists.txt | |
parent | 776157ac926102de7a8e40e936dd9efcd7f9dd1b (diff) |
Revert an unintended commit. Very sorry for this one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r-- | tools/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 64323ac629..c9072a7908 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -51,6 +51,13 @@ if( NOT WIN32 ) add_subdirectory(lto) endif() +if( LLVM_ENABLE_PIC ) + # TODO: support other systems: + if( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) + add_subdirectory(gold) + endif() +endif() + if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang ) endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) |