if 'AArch64' not in config.root.targets:
    config.unsupported = True

config.substitutions.insert(
    0, ('%cflags',
        '%cflags --target=aarch64-pc-linux -nostartfiles -nostdlib -fuse-ld=lld'
        ' -ffreestanding -Wl,--unresolved-symbols=ignore-all'))

config.substitutions.insert(
    0, ('%cxxflags',
        '%cxxflags --target=aarch64-pc-linux -nostartfiles -nostdlib -fuse-ld=lld'
        ' -ffreestanding -Wl,--unresolved-symbols=ignore-all'))
