BUILD.gn
765 Bytes
static_library("Common") {
output_name = "lldCommon"
configs += [ "//llvm/utils/gn/build:lld_code" ]
public_deps = [
# public_dep because public header Version.h includes generated Version.inc.
"//lld/include/lld/Common:version",
]
deps = [
"//llvm/lib/CodeGen",
"//llvm/lib/Demangle",
"//llvm/lib/IR",
"//llvm/lib/MC",
"//llvm/lib/Option",
"//llvm/lib/Support",
"//llvm/lib/Target",
]
sources = [
"Args.cpp",
"DWARF.cpp",
"ErrorHandler.cpp",
"Filesystem.cpp",
"Memory.cpp",
"Reproduce.cpp",
"Strings.cpp",
"TargetOptionsCommandFlags.cpp",
"Threads.cpp",
"Timer.cpp",
# FIXME: This should be in its own target that passes -DHAVE_VCS_VERSION_INC
"Version.cpp",
]
}