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 = ['ccache', 'clang', '-m32', '--target=thumbv6m-none-eabi', '-nostdlib']
7c_ld = '/usr/bin/arm-none-eabi-ld'
8ar = 'arm-none-eabi-ar'
9as = 'arm-none-eab-as'
10nm = 'arm-none-eab-nm'
11strip = 'arm-none-eabi-strip'
12# only needed to run tests
13exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-arm "$@"', 'run-arm']
14
15[host_machine]
16system = 'none'
17cpu_family = 'arm'
18cpu = 'arm'
19endian = 'little'
20
21[properties]
22c_args = ['-Werror=double-promotion', '-Wno-unsupported-floating-point-opt', '-fshort-enums']
23c_link_args = ['-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/11.3.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/12.2.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/12.3.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/13.2.1/thumb/v6-m/nofp/', '-Wl,-z,noexecstack']
24skip_sanity_check = true
25default_flash_addr = '0x00000000'
26default_flash_size = '0x00400000'
27default_ram_addr   = '0x20000000'
28default_ram_size   = '0x00200000'
29