[libc-commits] [libc] [libc][benchmark] allow benchmark to be built without llvm support (PR #200951)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Tue Jun 2 07:42:36 PDT 2026


================
@@ -39,3 +45,24 @@ HostState HostState::get() {
 
 } // namespace libc_benchmarks
 } // namespace llvm
+
+#ifndef LIBC_BENCHMARKS_HAS_LLVM_SUPPORT
+#include "llvm/ADT/Twine.h"
+#include <cstdlib>
+#include <iostream>
+
+namespace llvm {
+void report_fatal_error(const char *reason, bool gen_crash_diag) {
----------------
kaladron wrote:

Could you combine these with a string_view and have it convert them automatically?

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


More information about the libc-commits mailing list