[llvm] f6e4b9f - [RISCV] Fix shared libs build

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 04:14:43 PST 2021


Author: Nemanja Ivanovic
Date: 2021-02-09T06:14:25-06:00
New Revision: f6e4b9fc060a7d8324350ce55bcf1a9a59b06997

URL: https://github.com/llvm/llvm-project/commit/f6e4b9fc060a7d8324350ce55bcf1a9a59b06997
DIFF: https://github.com/llvm/llvm-project/commit/f6e4b9fc060a7d8324350ce55bcf1a9a59b06997.diff

LOG: [RISCV] Fix shared libs build

Commit a2d19bad07454ae7936d8f2b8482e24d57954fc4 introduced a
dependency in the RISCV disassembler on two additional libraries
(MC, RISCVDesc) which wasn't added to the CMakeLists.txt. This
causes shared library builds to break. This patch just adds them
to fix failures seen on some bots, such as the PPC64LE Multistage.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/Disassembler/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/Disassembler/CMakeLists.txt b/llvm/lib/Target/RISCV/Disassembler/CMakeLists.txt
index b0aae875f994..682ff19239f0 100644
--- a/llvm/lib/Target/RISCV/Disassembler/CMakeLists.txt
+++ b/llvm/lib/Target/RISCV/Disassembler/CMakeLists.txt
@@ -2,7 +2,9 @@ add_llvm_component_library(LLVMRISCVDisassembler
   RISCVDisassembler.cpp
 
   LINK_COMPONENTS
+  MC
   MCDisassembler
+  RISCVDesc
   RISCVInfo
   Support
 


        


More information about the llvm-commits mailing list