To support changing compilers which is particularly useful for cross
compilation, use the defined ARCH if it exists.
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
To support changing compilers which is particularly useful for cross
compilation, use the defined CC if it exists.
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
'-mabi=lp64d’ means that ‘long’ and pointers are 64-bit (implicitly defining ‘int’ to be 32-bit), and that floating-point values up to 64 bits wide are passed in F registers.
[1] https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html
Co-authored-by: Glenn Strauss <gstrauss@gluelogic.com>
github: closes#89