llvm/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn

executable("llvm-jitlink") {
  deps = [
    "//llvm/lib/BinaryFormat",
    "//llvm/lib/ExecutionEngine",
    "//llvm/lib/ExecutionEngine/JITLink",
    "//llvm/lib/ExecutionEngine/Orc",
    "//llvm/lib/ExecutionEngine/Orc/Debugging",
    "//llvm/lib/ExecutionEngine/RuntimeDyld",
    "//llvm/lib/MC",
    "//llvm/lib/Object",
    "//llvm/lib/Support",
    "//llvm/lib/Target:TargetsToBuild",
    "//llvm/lib/TargetParser",
  ]
  sources = [
    "llvm-jitlink-coff.cpp",
    "llvm-jitlink-elf.cpp",
    "llvm-jitlink-macho.cpp",
    "llvm-jitlink-statistics.cpp",
    "llvm-jitlink.cpp",
  ]
  if (host_os != "mac" && host_os != "win") {
    # Corresponds to export_executable_symbols() in cmake.
    ldflags = [ "-rdynamic" ]
  }
}