if(NOT LLD_BUILT_STANDALONE)
  set(tablegen_deps intrinsics_gen)
endif()

add_lld_library(lldCore
  DefinedAtom.cpp
  Error.cpp
  File.cpp
  LinkingContext.cpp
  Reader.cpp
  Reproduce.cpp
  Resolver.cpp
  SymbolTable.cpp
  TargetOptionsCommandFlags.cpp
  TaskGroup.cpp
  Writer.cpp

  ADDITIONAL_HEADER_DIRS
  ${LLD_INCLUDE_DIR}/lld/Core

  LINK_COMPONENTS
    MC
    Support

  DEPENDS
  ${tablegen_deps}
  )

if(NOT LLD_BUILT_STANDALONE)
  set(tablegen_deps intrinsics_gen)
endif()

add_lld_library(lldCore
  DefinedAtom.cpp
  Error.cpp
  File.cpp
  LinkingContext.cpp
  Reader.cpp
  Reproduce.cpp
  Resolver.cpp
  SymbolTable.cpp
  TargetOptionsCommandFlags.cpp
  TaskGroup.cpp
  Writer.cpp

  ADDITIONAL_HEADER_DIRS
  ${LLD_INCLUDE_DIR}/lld/Core

  LINK_COMPONENTS
    MC
    Support
  
  LINK_LIBS
  ${LLVM_PTHREAD_LIB}

  DEPENDS
  ${tablegen_deps}
  )

Fix undefined pthread references when building against libc++
Fix undefined pthread references when building against libc++

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@302363 91177308-0d34-0410-b5e6-96231b3b80d8
