updated tlibc
This commit is contained in:
parent
17baabbd95
commit
7876210be6
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@ -2,7 +2,7 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "(gdb) Debug",
|
||||
"name": "gdb_debug",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/bin/tcpu",
|
||||
@ -12,6 +12,7 @@
|
||||
"preLaunchTask": "build_exec_dbg",
|
||||
"stopAtEntry": false,
|
||||
"externalConsole": false,
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "gdb",
|
||||
"setupCommands": [
|
||||
|
||||
2
dependencies/tlibc
vendored
2
dependencies/tlibc
vendored
@ -1 +1 @@
|
||||
Subproject commit 0e80a568922ae579213d5a99329fa32420f0bcb0
|
||||
Subproject commit 8eeaff4245d0876f5c3308991ede7696254487f7
|
||||
@ -6,8 +6,8 @@ CMP_C="gcc"
|
||||
CMP_CPP="g++"
|
||||
STD_C="c11"
|
||||
STD_CPP="c++11"
|
||||
WARN_C="-Wall -Wextra -Werror=pointer-arith -Wno-unused-parameter"
|
||||
WARN_CPP="-Wall -Wextra -Werror=pointer-arith -Wno-unused-parameter"
|
||||
WARN_C="-Wall -Wextra -Werror=return-type -Werror=pointer-arith -Wno-unused-parameter"
|
||||
WARN_CPP="-Wall -Wextra -Werror=return-type -Werror=pointer-arith -Wno-unused-parameter"
|
||||
SRC_C="$(find src -name '*.c')"
|
||||
SRC_CPP="$(find src -name '*.cpp')"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#include "compiler/Compiler.h"
|
||||
#include "VM/Display/Display.h"
|
||||
|
||||
#define arg_is(STR) (strcmp(argv[argi], STR) == 0)
|
||||
#define arg_is(LITERAL) str_equals(arg_str, STR(LITERAL))
|
||||
|
||||
i32 compileSources(cstr source_file, cstr out_file, bool debug_log);
|
||||
i32 bootFromImage(cstr image_file);
|
||||
@ -25,6 +25,7 @@ i32 main(const i32 argc, cstr* argv){
|
||||
bool debug_log = false;
|
||||
|
||||
for(i32 argi = 1; argi < argc; argi++){
|
||||
str arg_str = str_from_cstr(argv[argi]);
|
||||
if(arg_is("-h") || arg_is("--help")){
|
||||
printf(
|
||||
"-h, --help Show this message.\n"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user