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', '-m32', '-target', 'riscv32-unknown-elf', '-march=rv32imafdc', '-mabi=ilp32d', '-nostdlib'] 7c_ld = '/usr/bin/riscv64-unknown-elf-ld' 8ar = 'riscv64-unknown-elf-ar' 9as = 'riscv64-unknown-elf-as' 10nm = 'riscv64-unknown-elf-nm' 11strip = 'riscv64-unknown-elf-strip' 12# only needed to run tests 13exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv "$@"', 'run-riscv'] 14 15[host_machine] 16system = 'none' 17cpu_family = 'riscv32' 18cpu = 'riscv' 19endian = 'little' 20 21[properties] 22c_args = ['-Werror=double-promotion'] 23c_link_args = ['-Wl,-melf32lriscv', '-L/usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/12.1.0/rv32imafdc/ilp32d'] 24skip_sanity_check = true 25has_link_defsym = true 26default_flash_addr = '0x80000000' 27default_flash_size = '0x00200000' 28default_ram_addr = '0x80200000' 29default_ram_size = '0x00200000' 30