1 if 'RISCV' not in config.root.targets:
2 config.unsupported = True
4 flags = '--target=riscv64 -nostdlib -ffreestanding -Wl,--emit-relocs'
6 config.substitutions.insert(0, ('%cflags', f'%cflags {flags}'))
7 config.substitutions.insert(0, ('%cxxflags', f'%cxxflags {flags}'))