[PATCH] D55750: [gn build] Add build files for opt and its dependency Transforms/Couroutines
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 16 18:36:40 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL349324: [gn build] Add build files for opt and its dependency Transforms/Couroutines (authored by nico, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D55750?vs=178411&id=178419#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55750/new/
https://reviews.llvm.org/D55750
Files:
llvm/trunk/utils/gn/secondary/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/lib/Transforms/Coroutines/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/tools/llc/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/tools/opt/BUILD.gn
Index: llvm/trunk/utils/gn/secondary/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/BUILD.gn
@@ -8,6 +8,7 @@
"//llvm/tools/llvm-mc",
"//llvm/tools/llvm-undname",
"//llvm/tools/obj2yaml",
+ "//llvm/tools/opt",
"//llvm/tools/yaml2obj",
"//llvm/utils/FileCheck",
"//llvm/utils/count",
Index: llvm/trunk/utils/gn/secondary/llvm/tools/opt/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/opt/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/llvm/tools/opt/BUILD.gn
@@ -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" ]
+ }
+}
Index: llvm/trunk/utils/gn/secondary/llvm/tools/llc/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/llc/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/llvm/tools/llc/BUILD.gn
@@ -20,7 +20,7 @@
]
# 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" ]
Index: llvm/trunk/utils/gn/secondary/llvm/lib/Transforms/Coroutines/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/lib/Transforms/Coroutines/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/llvm/lib/Transforms/Coroutines/BUILD.gn
@@ -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",
+ ]
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55750.178419.patch
Type: text/x-patch
Size: 3125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181217/f0824cb2/attachment.bin>
More information about the llvm-commits
mailing list