message: [Swift] Link against the swift reflection library.
  * [Swift/CMake] Link against the swift reflection library.
  <rdar://problem/36477650>
  * Link against swiftReflection
  we need to special case this when building for non-linux hosts
diff: +include_directories(../Plugins/Process/Utility)
  +
  +set(REFLECTION_LIB "")
  +
  +if(CMAKE_SYSTEM_NAME MATCHES "Linux")
  + set(REFLECTION_LIB "swiftReflection-linux-x86_64")
  +endif()
  +
  +if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
  + # libswiftReflection is placed in a subdirectory which depends
  + # on the host we're currently running on.
  + # FIXME: There must be a better way to get at libswiftReflection.a
  + string(REPLACE "-" ";" TRIPLE_LIST "${LLVM_HOST_TRIPLE}")
  + list(GET TRIPLE_LIST 0 ARCH)
  + list(GET TRIPLE_LIST 2 HOST_OS_VERSION)
  + string(REGEX MATCHALL "[a-z]+" HOST_OS "${HOST_OS_VERSION}")
  + set(REFLECTION_LIB "${REFLECTION_LIB}-${HOST_OS}-${ARCH}")
  + message("Building for non-linux host, setting reflection lib to ${REFLECTION_LIB}")
  +endif()
  +
  add_lldb_library(lldbTarget
  ABI.cpp
  CPPLanguageRuntime.cpp
  @@ -65,6 +85,7 @@ add_lldb_library(lldbTarget
  swiftBasic
  swiftFrontend
  swiftRemoteAST
  + ${REFLECTION_LIB}
  lldbBreakpoint
  lldbCore
  lldbExpression
  