[llvm] [BOLT][RISCV] Add basic RISC-V initialization support for unit tests (PR #222883)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 05:25:33 PDT 2026


https://github.com/kito-cheng approved this pull request.

LGMT, but I guess you need add `BinaryFormat` to `bolt/unittests/Core/CMakeLists.txt` due to `convertTripleArchTypeToEMachine`, go ahead with that fix :)
```
$ git diff
diff --git a/bolt/unittests/Core/CMakeLists.txt b/bolt/unittests/Core/CMakeLists.txt
index b8bac10afc50..6b9b73bd1605 100644
--- a/bolt/unittests/Core/CMakeLists.txt
+++ b/bolt/unittests/Core/CMakeLists.txt
@@ -1,4 +1,5 @@
 set(LLVM_LINK_COMPONENTS
+  BinaryFormat
   DebugInfoDWARF
   Object
   MC
```

https://github.com/llvm/llvm-project/pull/222883


More information about the llvm-commits mailing list