aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-19 12:57:30 +0100
committergingerBill <bill@gingerbill.org>2021-05-19 12:57:30 +0100
commit86dbcb1b20e7a5575013f2acbf0f48d194595d27 (patch)
tree171442a4df55dd09f8e65c1c33c8c8ffe879d977 /src/build_settings.cpp
parent3ac934dd15b59be670627213643e80c6d902fe4d (diff)
Add `-verbose-errors` which shows the error in the line of code
Diffstat (limited to 'src/build_settings.cpp')
-rw-r--r--src/build_settings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index 09d860cfc..0207221bc 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -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) {