Enable RISC-V (rv64gc) compilation (#6439)
This commit is contained in:
parent
b5c0b479fb
commit
5762ebc249
|
@ -120,6 +120,11 @@ elif defined(macosx) and defined(arm64):
|
|||
# Apple's Clang can't handle "-march=native" on M1: https://github.com/status-im/nimbus-eth2/issues/2758
|
||||
switch("passC", "-mcpu=apple-m1")
|
||||
switch("passL", "-mcpu=apple-m1")
|
||||
elif defined(riscv64):
|
||||
# riscv64 needs specification of ISA with extensions. 'gc' is widely supported
|
||||
# and seems to be the minimum extensions needed to build.
|
||||
switch("passC", "-march=rv64gc")
|
||||
switch("passL", "-march=rv64gc")
|
||||
else:
|
||||
switch("passC", "-march=native")
|
||||
switch("passL", "-march=native")
|
||||
|
|
Loading…
Reference in New Issue