#See https://mesonbuild.com/Cross-compilation.html
#and https://mesonbuild.com/Machine-files.html
#and https://mesonbuild.com/Reference-tables.html#cpu-families
#NOTE: This may work with debian as well.
#example usage of this file:
#    meson --buildtype=release --cross-file=./meson_crosscompile/ubuntu_risv64.txt crossbuild_riscv64
#    ninja -C crossbuild_riscv64


[binaries]
c = '/usr/bin/riscv64-linux-gnu-gcc'
ar = '/usr/riscv64-linux-gnu/bin/ar'
strip = '/usr/riscv64-linux-gnu/bin/strip'
pkgconfig = '/usr/bin/riscv64-linux-gnu-pkg-config'
ld = '/usr/bin/arm-linux/gnueabihf-ld'

[properties]
root = '/usr/riscv64-linux-gnu'
has_function_printf = true
skip_sanity_check = true

[host_machine]
system = 'linux'
cpu_family = 'riscv64'
cpu = ''
endian = 'little'
