-if( LLVM_ENABLE_PIC )
- # TODO: support other systems:
- if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
- add_llvm_tool_subdirectory(gold)
- else()
- ignore_llvm_tool_subdirectory(gold)
- endif()
-else()
- ignore_llvm_tool_subdirectory(gold)
-endif()
-
-if( LLVM_BUILD_LLVM_DYLIB )
- add_llvm_tool_subdirectory(llvm-shlib)
-else()
- ignore_llvm_tool_subdirectory(llvm-shlib)
-endif()