<commit_before>include_directories(../Plugins/Process/Utility)

set(REFLECTION_LIB "swiftReflection")

if(LLVM_HOST_TRIPLE MATCHES "^((\\?!linux).)*$")
    # 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
  ExecutionContext.cpp
  FileAction.cpp
  JITLoader.cpp
  JITLoaderList.cpp
  InstrumentationRuntime.cpp
  InstrumentationRuntimeStopInfo.cpp
  Language.cpp
  LanguageRuntime.cpp
  Memory.cpp
  MemoryHistory.cpp
  ModuleCache.cpp
  ObjCLanguageRuntime.cpp
  OperatingSystem.cpp<commit_msg>Gate this code more cleanly<commit_after>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
  ExecutionContext.cpp
  FileAction.cpp
  JITLoader.cpp
  JITLoaderList.cpp
  InstrumentationRuntime.cpp
  InstrumentationRuntimeStopInfo.cpp
  Language.cpp
  LanguageRuntime.cpp
  Memory.cpp
  MemoryHistory.cpp
  ModuleCache.cpp
  ObjCLanguageRuntime.cpp
  OperatingSystem.cpp
{'fraction_non_alphanumeric': 0.09922621756941284, 'fraction_numerical': 0.0036413290851160674, 'mean_word_length': 4.8613333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1853725', 'n_tokens_mistral': 773, 'n_tokens_neox': 751, 'n_words': 160}