More implementation of the C standard library.

This commit is contained in:
2024-02-04 02:01:08 +01:00
parent 2a612d2d83
commit b965486de3
21 changed files with 658 additions and 68 deletions

View File

@@ -2,7 +2,7 @@
Import('env')
init_sources = Split('''
src/main.c
src/main.cpp
''')
init_env = env.Clone()
@@ -11,6 +11,7 @@ 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(LINKFLAGS = ['-nostdlib++']) # TODO: this should be changed in GCC, but I can't find a way to do it
init_env.Append(CPPPATH = ['#targets/_any/bastl/include', '#targets/_any/stdlib/include', '#targets/_any/kernel/include'])
prog_init = init_env.Program(