Add -verbose-errors which shows the error in the line of code

This commit is contained in:
gingerBill
2021-05-19 12:57:30 +01:00
parent 3ac934dd15
commit 86dbcb1b20
4 changed files with 144 additions and 2 deletions
+5
View File
@@ -200,8 +200,10 @@ struct BuildContext {
bool disallow_do;
bool insert_semicolon;
bool ignore_warnings;
bool warnings_as_errors;
bool show_error_line;
bool use_subsystem_windows;
bool ignore_microsoft_magic;
@@ -746,6 +748,9 @@ String get_fullpath_core(gbAllocator a, String path) {
return path_to_fullpath(a, res);
}
bool show_error_line(void) {
return build_context.show_error_line;
}
void init_build_context(TargetMetrics *cross_target) {