QTechOS/riscv.cross
Quantum 8274a93abb
Make: Throwing more random shit at the makefiles
Switched to an acutal cross compiler instead of using the linux gcc

Stole more ideas from managarm

Figured out the "right" way to handle warnings and flags in meson

Removed libgcc dependency because it doesnt exist in riscv64-elf-
will need to figure out how to use things like  __builtin_memcpy
properly
2022-07-31 22:57:40 -04:00

18 lines
333 B
Text

[binaries]
c = 'riscv64-elf-gcc'
cpp = 'riscv64-elf-g++'
[host_machine]
system = 'riscv-qtech-os'
cpu_family = 'riscv64'
cpu = 'rv64'
endian = 'little'
[constants]
args = ['-ffreestanding', '-march=rv64gc', '-mabi=lp64d', '-mcmodel=medany']
[built-in options]
c_args = args
c_link_args = args
cpp_args = args
cpp_link_args = args