Remove flags from build tool
Some checks failed
/ run-and-compile-ubuntu (push) Has been cancelled
/ run-and-compile-mac (push) Has been cancelled
/ run-and-compile-windows (push) Has been cancelled

This commit is contained in:
Krzosa Karol
2024-03-16 12:01:52 +01:00
parent 18100a87fb
commit 7660402d08
2 changed files with 3 additions and 12 deletions

View File

@@ -42,22 +42,21 @@ int main(int argument_count, char **arguments) {
result = Run(cc + build_file + flags); result = Run(cc + build_file + flags);
} else if (cc == "clang") { } else if (cc == "clang") {
Array<S8_String> flags = {Perm}; Array<S8_String> flags = {Perm};
cc = "clang++";
flags += "-std=c++11 -g"; flags += "-std=c++11 -g";
flags += "-fdiagnostics-absolute-paths"; flags += "-fdiagnostics-absolute-paths";
flags += "-Wno-writable-strings"; flags += "-Wno-writable-strings";
flags += "-fno-exceptions";
flags += "-fno-rtti";
flags += "-lm"; flags += "-lm";
flags += Fmt("-o %.*s", S8_Expand(exe_name)); flags += Fmt("-o %.*s", S8_Expand(exe_name));
result = Run(cc + build_file + flags); result = Run(cc + build_file + flags);
} else { } else {
IO_Assert(cc == "gcc"); IO_Assert(cc == "gcc");
cc = "g++";
Array<S8_String> flags = {Perm}; Array<S8_String> flags = {Perm};
flags += "-std=c++11 -g"; flags += "-std=c++11 -g";
flags += "-Wno-write-strings"; flags += "-Wno-write-strings";
flags += "-fno-exceptions";
flags += "-fno-rtti";
flags += "-lm"; flags += "-lm";
flags += Fmt("-o %.*s", S8_Expand(exe_name)); flags += Fmt("-o %.*s", S8_Expand(exe_name));
result = Run(cc + build_file + flags); result = Run(cc + build_file + flags);

View File

@@ -20,11 +20,3 @@
#include "filesystem.c" #include "filesystem.c"
#include "cmd.c" #include "cmd.c"
/*
- I think it's okay to say that strings being null terminated should be mostly treated as NOT terminated but leave some
leeway for big buffers and other such things. Just make sure to not relay on it because it's easier unless specified.
- Not sure if we should assume that strings should use allocators or arenas, for now it's arenas because I don't have other use cases
@todo
- Remove static buffers from filesystem, use scratch arenas, more secure, data corruption instead of control flow corruption
*/