Quantum
8274a93abb
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
22 lines
479 B
Meson
22 lines
479 B
Meson
project('riscv-qtech-os', ['c', 'cpp'],
|
|
default_options: [
|
|
'cpp_std=gnu++20',
|
|
'c_std=gnu11',
|
|
'warning_level=3',
|
|
'werror=false',
|
|
'buildtype=debugoptimized',
|
|
# 'buildtype=release',
|
|
]
|
|
)
|
|
|
|
if not meson.is_cross_build()
|
|
error('Kernel must be cross compiled')
|
|
endif
|
|
|
|
c = meson.get_compiler('cpp')
|
|
cxx = meson.get_compiler('cpp')
|
|
arch = host_machine.cpu_family()
|
|
platform = 'allwinner-d1'
|
|
# platform = 'qemu'
|
|
|
|
subdir('kernel')
|