[binaries]
c = 'xtensa-esp32s3-elf-gcc'
cpp = 'xtensa-esp32s3-elf-g++'
ar = 'xtensa-esp32s3-elf-ar'
strip = 'xtensa-esp32s3-elf-strip'

# It seems like this is not necessary:
#[build_machine]
#system = 'linux'
#cpu_family = 'x86_64'
#cpu = 'x86_64'
#endian = 'little'

[host_machine]
system = 'none'
cpu_family = 'xtensa'
cpu = 'esp32s3'
endian = 'little'

[built-in options]
c_args = [
    '-ffreestanding',
    '-fno-builtin',
    '-mlongcalls',
    # Manually define the missing inttypes.h macros
    '-DPRId64="lld"',
    '-DPRIu64="llu"',
    '-DPRIi64="lli"',
    '-DPRId32="d"',
    '-DPRIu32="u"',
    '-DPRIx64="llx"'
    ]
c_link_args = [
    '-nostdlib',
    '-static'
    ]
default_library = 'static'
