Remove flags from build tool
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
|
||||||
*/
|
|
||||||
|
|||||||
Reference in New Issue
Block a user