[gn build] port clang-linker-wrapper build file

Tests now try to run it, so we need a build file for it.
This commit is contained in:
Nico Weber 2022-04-20 00:11:10 -04:00
parent 08881c2de6
commit 9973075274
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
executable("clang-linker-wrapper") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/Basic",
"//llvm/lib/Analysis",
"//llvm/lib/BinaryFormat",
"//llvm/lib/Bitcode/Writer",
"//llvm/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/IRReader",
"//llvm/lib/LTO",
"//llvm/lib/MC",
"//llvm/lib/Object",
"//llvm/lib/Passes",
"//llvm/lib/Support",
"//llvm/lib/Target",
"//llvm/lib/Target:TargetsToBuild",
"//llvm/lib/Transforms/Utils",
]
sources = [
"ClangLinkerWrapper.cpp",
"OffloadWrapper.cpp",
]
}

View File

@ -56,6 +56,7 @@ executable("clang") {
"//clang/lib/Frontend",
"//clang/lib/FrontendTool",
"//clang/lib/Headers",
"//clang/tools/clang-linker-wrapper",
"//clang/tools/clang-offload-bundler",
"//clang/tools/clang-offload-wrapper",
"//llvm/include/llvm/Config:llvm-config",