mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 16:38:22 +00:00
Add flags -ignore-warnings and -warnings-as-errors
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user