[InstCombine] Signed saturation patterns
[llvm-complete.git] / utils / gn / secondary / llvm / tools / bugpoint / BUILD.gn
blobd14aec2f72aa9e5cc24c22721673e7cb9a505410
1 executable("bugpoint") {
2   deps = [
3     "//llvm/include/llvm/Config:config",
4     "//llvm/include/llvm/Config:llvm-config",
5     "//llvm/lib/Analysis",
6     "//llvm/lib/Bitcode/Writer",
7     "//llvm/lib/CodeGen",
8     "//llvm/lib/IR",
9     "//llvm/lib/IRReader",
10     "//llvm/lib/Linker",
11     "//llvm/lib/Support",
12     "//llvm/lib/Target",
13     "//llvm/lib/Target:TargetsToBuild",
14     "//llvm/lib/Transforms/AggressiveInstCombine",
15     "//llvm/lib/Transforms/IPO",
16     "//llvm/lib/Transforms/Instrumentation",
17     "//llvm/lib/Transforms/ObjCARC",
18     "//llvm/lib/Transforms/Scalar",
19     "//llvm/lib/Transforms/Utils",
20     "//llvm/lib/Transforms/Vectorize",
21   ]
22   sources = [
23     "BugDriver.cpp",
24     "CrashDebugger.cpp",
25     "ExecutionDriver.cpp",
26     "ExtractFunction.cpp",
27     "FindBugs.cpp",
28     "Miscompilation.cpp",
29     "OptimizerDriver.cpp",
30     "ToolRunner.cpp",
31     "bugpoint.cpp",
32   ]
34   # Support plugins.
35   # FIXME: Disable dead stripping once other binaries are dead-stripped.
36   if (host_os != "mac" && host_os != "win") {
37     # Make sure bugpoint plugins can access bugpoint's symbols.
38     # Corresponds to export_executable_symbols() in cmake.
39     ldflags = [ "-rdynamic" ]
40   }