philss / rustler_precompiled

Use precompiled NIFs from trusted sources in your Elixir code
181 stars 25 forks source link

Map riscv64 to riscv64gc to match Rust naming #43

Closed fhunleth closed 1 year ago

fhunleth commented 1 year ago

For 64-bit RISC-V platforms, Nerves passes riscv64 for the architecture since that matched the tools (gcc and zig) used when Nerves was ported to RISC-V. Rust uses riscv64gc. The g and c refer to instruction sets available on the RISC-V processor, so this is a more specific name. The g says that the processor supports atomics, integer and floating point math. The c shows support for compressed instructions. To my knowledge, all available 64-bit RISC-V processors support gc, so this is a safe mapping.

philss commented 1 year ago

@fhunleth thank you! :purple_heart:

philss commented 1 year ago

This was released in version 0.5.5 :)

fhunleth commented 1 year ago

Awesome! Thanks for the super fast turnaround!