[gn build] (manually) port 4ff5e8184c665
authorNico Weber <thakis@chromium.org>
Thu, 9 Jun 2022 16:29:17 +0000 (12:29 -0400)
committerNico Weber <thakis@chromium.org>
Thu, 9 Jun 2022 16:29:56 +0000 (12:29 -0400)
Fixes link of many binaries if RISCV is enabled but most other targets aren't.

llvm/utils/gn/secondary/llvm/lib/Target/RISCV/BUILD.gn

index ca2f4cc..ce95cda 100644 (file)
@@ -58,6 +58,7 @@ static_library("LLVMRISCVCodeGen") {
     "//llvm/lib/MC",
     "//llvm/lib/Support",
     "//llvm/lib/Target",
+    "//llvm/lib/Transforms/IPO",
   ]
   include_dirs = [ "." ]
   sources = [