aboutsummaryrefslogtreecommitdiffstats
path: root/cparser
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2020-07-02 14:52:34 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2020-07-08 11:58:10 +0200
commitf8cfbc1bc22c06835e9ea7b0cab41a8f25b523ba (patch)
tree2ad83773791fafb3b94fc9132a488fafb54026ed /cparser
parentfdaa2a3e7269ab5fc6fade4ac56699ad21de1bda (diff)
downloadcompcert-kvx-f8cfbc1bc22c06835e9ea7b0cab41a8f25b523ba.tar.gz
compcert-kvx-f8cfbc1bc22c06835e9ea7b0cab41a8f25b523ba.zip
Introduce additional "branch" build information.
Diffstat (limited to 'cparser')
-rw-r--r--cparser/Diagnostics.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/cparser/Diagnostics.ml b/cparser/Diagnostics.ml
index 7957375c..86a5e522 100644
--- a/cparser/Diagnostics.ml
+++ b/cparser/Diagnostics.ml
@@ -400,16 +400,16 @@ let raise_on_errors () =
raise Abort
let crash exn =
- if Version.buildnr <> "" && Version.tag <> "" then begin
+ if Version.buildnr <> "" && Version.tag <> "" && Version.branch <> "" then begin
let backtrace = Printexc.get_backtrace () in
- eprintf "%tThis is CompCert, Release %s, Build:%s, Tag:%s%t\n"
- bc Version.version Version.buildnr Version.tag rsc;
+ eprintf "%tThis is CompCert, Release %s, Build:%s, Tag:%s, Branch:%s%t\n"
+ bc Version.version Version.buildnr Version.tag Version.branch rsc;
eprintf "Backtrace (please include this in your support request):\n%s"
backtrace;
eprintf "%tUncaught exception: %s.\n\
\ Please report this problem to our support.\n\
-\ Error occurred in Build: %s, Tag: %s.\n%t"
- rc (Printexc.to_string exn) Version.buildnr Version.tag rsc;
+\ Error occurred in Build: %s, Tag: %s, Branch %s.\n%t"
+ rc (Printexc.to_string exn) Version.buildnr Version.tag Version.branch rsc;
exit 2
end else begin
let backtrace = Printexc.get_backtrace ()