aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-22 13:54:53 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-22 13:54:53 +0000
commit5072d5c776eb53afb2439f43dfa40ccadb68dfb9 (patch)
tree60818a92f4cd22e68512fc7488253b9705bca038 /src/main.cpp
parent78ed2560d3f31b3712bebda9825978b7dc60dcbe (diff)
Add warning in code generation stage which might cause a possible code gen issue, when non-constant initialization is large
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 753f58986..499b8a5ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4046,6 +4046,14 @@ int main(int arg_count, char const **arg_ptr) {
remove_temp_files(gen);
}
+ if (any_errors()) {
+ print_all_errors();
+ return 1;
+ }
+ if (any_warnings()) {
+ print_all_errors();
+ }
+
end_of_code_gen:;
if (build_context.export_dependencies_format != DependenciesExportUnspecified) {