From 70f8ab9a6fc24f0d5bf99832d979d99602da3cd7 Mon Sep 17 00:00:00 2001 From: Robert Mordzon Date: Fri, 11 Apr 2025 15:17:22 +0200 Subject: [PATCH] Add riscv64 build support (#7309) Lighthouse does not compile on the _riscv64_ architecture due to a missing target configuration in the `bls_hardware_acceleration` function. Added support for compiling Lighthouse on the riscv64 architecture by explicitly handling the _riscv64_ target in the bls_hardware_acceleration function. Specifically, this line was added: ``` #[cfg(target_arch = "riscv64")] return false; ``` This prevents a compilation error on RISC-V. --- lighthouse/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lighthouse/src/main.rs b/lighthouse/src/main.rs index 66dae05326..7ddf04db01 100644 --- a/lighthouse/src/main.rs +++ b/lighthouse/src/main.rs @@ -68,6 +68,9 @@ fn bls_hardware_acceleration() -> bool { #[cfg(target_arch = "aarch64")] return std::arch::is_aarch64_feature_detected!("neon"); + + #[cfg(target_arch = "riscv64")] + return false; } fn allocator_name() -> String {