Add flags -ignore-warnings and -warnings-as-errors

This commit is contained in:
gingerBill
2021-02-23 14:59:28 +00:00
parent a1693c0184
commit 01313eec7f
3 changed files with 79 additions and 28 deletions

View File

@@ -194,6 +194,9 @@ struct BuildContext {
bool disallow_do;
bool insert_semicolon;
bool ignore_warnings;
bool warnings_as_errors;
bool use_llvm_api;
bool use_subsystem_windows;
@@ -215,6 +218,13 @@ struct BuildContext {
gb_global BuildContext build_context = {0};
bool global_warnings_as_errors(void) {
return build_context.warnings_as_errors;
}
bool global_ignore_warnings(void) {
return build_context.ignore_warnings;
}
gb_global TargetMetrics target_windows_386 = {
TargetOs_windows,