1[binaries]
2# Meson 0.53.2 doesn't use any cflags when doing basic compiler tests,
3# so we have to add -nostdlib to the compiler configuration itself or
4# early compiler tests will fail. This can be removed when picolibc
5# requires at least version 0.54.2 of meson.
6c = ['clang', '-target', 'riscv64-unknown-elf', '-mcmodel=medany', '-nostdlib']
7cpp = ['clang', '-target', 'riscv64-unknown-elf', '-mcmodel=medany', '-nostdlib']
8c_ld = '/usr/bin/riscv64-unknown-elf-ld'
9cpp_ld = '/usr/bin/riscv64-unknown-elf-ld'
10ar = 'riscv64-unknown-elf-ar'
11as = 'riscv64-unknown-elf-as'
12nm = 'riscv64-unknown-elf-nm'
13strip = 'riscv64-unknown-elf-strip'
14# only needed to run tests
15exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv "$@"', 'run-riscv']
16
17[host_machine]
18system = 'none'
19cpu_family = 'riscv64'
20cpu = 'riscv'
21endian = 'little'
22
23[properties]
24c_args = ['-Werror=double-promotion', '-fshort-enums']
25c_link_args = ['-L/usr/lib/gcc/riscv64-unknown-elf/14.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/13.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/12.1.0/rv64imac/lp64/', '-Wno-unused-command-line-argument']
26cpp_link_args = ['-L/usr/lib/gcc/riscv64-unknown-elf/14.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/13.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv64imac/lp64/', '-L/usr/lib/gcc/riscv64-unknown-elf/12.1.0/rv64imac/lp64/', '-Wno-unused-command-line-argument']
27skip_sanity_check = true
28has_link_defsym = true
29default_flash_addr = '0x80000000'
30default_flash_size = '0x00200000'
31default_ram_addr   = '0x80200000'
32default_ram_size   = '0x00200000'
33