Skip to content

Commit 70f8ab9

Browse files
authored
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.
1 parent 39eb814 commit 70f8ab9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lighthouse/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ fn bls_hardware_acceleration() -> bool {
6868

6969
#[cfg(target_arch = "aarch64")]
7070
return std::arch::is_aarch64_feature_detected!("neon");
71+
72+
#[cfg(target_arch = "riscv64")]
73+
return false;
7174
}
7275

7376
fn allocator_name() -> String {

0 commit comments

Comments
 (0)