[llvm] 954f891 - [Unittests] Fix RISCV unit tests build
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 10:45:19 PST 2024
Author: Krzysztof Parzyszek
Date: 2024-03-06T12:44:13-06:00
New Revision: 954f891af20d193f6a5f41d7ede6a9313a49cfc3
URL: https://github.com/llvm/llvm-project/commit/954f891af20d193f6a5f41d7ede6a9313a49cfc3
DIFF: https://github.com/llvm/llvm-project/commit/954f891af20d193f6a5f41d7ede6a9313a49cfc3.diff
LOG: [Unittests] Fix RISCV unit tests build
/usr/bin/ld: CMakeFiles/RISCVTests.dir/RISCVInstrInfoTest.cpp.o: undefined
reference to symbol '_ZNK4llvm12LocationSize5printERNS_11raw_ostreamE'
/usr/bin/ld: /work/kparzysz/git/llvm.org/b/x86/lib/libLLVMAnalysis.so.19.0
git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
The undefined symbol is
llvm::LocationSize::print(llvm::raw_ostream&) const
Added:
Modified:
llvm/unittests/Target/RISCV/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/unittests/Target/RISCV/CMakeLists.txt b/llvm/unittests/Target/RISCV/CMakeLists.txt
index b58d605355bad8..0a64bf273e3149 100644
--- a/llvm/unittests/Target/RISCV/CMakeLists.txt
+++ b/llvm/unittests/Target/RISCV/CMakeLists.txt
@@ -7,6 +7,7 @@ set(LLVM_LINK_COMPONENTS
RISCVCodeGen
RISCVDesc
RISCVInfo
+ Analysis
CodeGen
Core
MC
More information about the llvm-commits
mailing list