1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[gn build] Add build files for opt and its dependency Transforms/Couroutines

Needed for check-lld.

Differential Revision: https://reviews.llvm.org/D55750

llvm-svn: 349324
This commit is contained in:
Nico Weber 2018-12-17 02:33:15 +00:00
parent 9414c8db71
commit b8e447f672
4 changed files with 61 additions and 1 deletions

View File

@ -8,6 +8,7 @@ group("default") {
"//llvm/tools/llvm-mc",
"//llvm/tools/llvm-undname",
"//llvm/tools/obj2yaml",
"//llvm/tools/opt",
"//llvm/tools/yaml2obj",
"//llvm/utils/FileCheck",
"//llvm/utils/count",

View File

@ -0,0 +1,20 @@
static_library("Coroutines") {
output_name = "LLVMCoroutines"
deps = [
"//llvm/include/llvm/Config:llvm-config",
"//llvm/lib/Analysis",
"//llvm/lib/IR",
"//llvm/lib/Support",
"//llvm/lib/Transforms/IPO",
"//llvm/lib/Transforms/Scalar",
"//llvm/lib/Transforms/Utils",
]
sources = [
"CoroCleanup.cpp",
"CoroEarly.cpp",
"CoroElide.cpp",
"CoroFrame.cpp",
"CoroSplit.cpp",
"Coroutines.cpp",
]
}

View File

@ -20,7 +20,7 @@ executable("llc") {
]
# Support plugins.
# FIXME: Disable dead stripping once other binaries are dead-stripped
# FIXME: Disable dead stripping once other binaries are dead-stripped.
if (host_os == "linux") {
# Corresponds to export_executable_symbols() in cmake.
ldflags = [ "-rdynamic" ]

View File

@ -0,0 +1,39 @@
executable("opt") {
deps = [
"//llvm/include/llvm/Config:llvm-config",
"//llvm/lib/Analysis",
"//llvm/lib/Bitcode/Writer",
"//llvm/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/MC",
"//llvm/lib/Passes",
"//llvm/lib/Support",
"//llvm/lib/Target",
"//llvm/lib/Target:TargetsToBuild",
"//llvm/lib/Transforms/AggressiveInstCombine",
"//llvm/lib/Transforms/Coroutines",
"//llvm/lib/Transforms/IPO",
"//llvm/lib/Transforms/Instrumentation",
"//llvm/lib/Transforms/ObjCARC",
"//llvm/lib/Transforms/Scalar",
"//llvm/lib/Transforms/Utils",
"//llvm/lib/Transforms/Vectorize",
]
sources = [
"AnalysisWrappers.cpp",
"BreakpointPrinter.cpp",
"Debugify.cpp",
"GraphPrinters.cpp",
"NewPMDriver.cpp",
"PassPrinters.cpp",
"PrintSCC.cpp",
"opt.cpp",
]
# Support plugins.
# FIXME: Disable dead stripping once other binaries are dead-stripped.
if (host_os == "linux") {
# Corresponds to export_executable_symbols() in cmake.
ldflags = [ "-rdynamic" ]
}
}