Added options to compile stdlib and init executable.
This commit is contained in:
23
targets/_any/init/SConscript
Normal file
23
targets/_any/init/SConscript
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
Import('env')
|
||||
|
||||
init_sources = Split('''
|
||||
src/main.cpp
|
||||
''')
|
||||
|
||||
init_env = env.Clone()
|
||||
init_env['AS'] = 'x86_64-elf-baos-as'
|
||||
init_env['CC'] = 'x86_64-elf-baos-gcc'
|
||||
init_env['CXX'] = 'x86_64-elf-baos-g++'
|
||||
init_env['LD'] = 'x86_64-elf-baos-g++'
|
||||
init_env.Append(CXXFLAGS = ['-fno-exceptions', '-fno-rtti', '-std=c++20'])
|
||||
init_env.Append(CPPPATH = ['#targets/_any/bastl/include', '#targets/_any/stdlib/include', '#targets/_any/kernel/include'])
|
||||
|
||||
prog_init = init_env.Program(
|
||||
target = f'#sysroot_{init_env["TARGET_ARCH"]}/bin/init',
|
||||
source = init_sources,
|
||||
LIBS = [init_env.File('#stdlib/libc.a')]
|
||||
)
|
||||
init_env.Alias('init', prog_init)
|
||||
|
||||
Return('env')
|
||||
Reference in New Issue
Block a user