aboutsummaryrefslogtreecommitdiffstats
path: root/driver/CommonOptions.ml
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 /driver/CommonOptions.ml
parentfdaa2a3e7269ab5fc6fade4ac56699ad21de1bda (diff)
downloadcompcert-kvx-f8cfbc1bc22c06835e9ea7b0cab41a8f25b523ba.tar.gz
compcert-kvx-f8cfbc1bc22c06835e9ea7b0cab41a8f25b523ba.zip
Introduce additional "branch" build information.
Diffstat (limited to 'driver/CommonOptions.ml')
-rw-r--r--driver/CommonOptions.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/driver/CommonOptions.ml b/driver/CommonOptions.ml
index fc7bbb77..a2f249c1 100644
--- a/driver/CommonOptions.ml
+++ b/driver/CommonOptions.ml
@@ -15,8 +15,9 @@ open Commandline
(* The version string for [tool_name] *)
let version_string tool_name =
- if Version.buildnr <> "" && Version.tag <> "" then
- Printf.sprintf "The CompCert %s, Release: %s, Build: %s, Tag: %s\n" tool_name Version.version Version.buildnr Version.tag
+ if Version.buildnr <> "" && Version.tag <> "" && Version.branch <> "" then
+ Printf.sprintf "The CompCert %s, Release: %s, Build: %s, Tag: %s, Branch %s\n"
+ tool_name Version.version Version.buildnr Version.tag Version.branch
else
Printf.sprintf "The CompCert %s, version %s\n" tool_name Version.version
@@ -26,7 +27,8 @@ let print_version_and_exit tool_name () =
let version_file_string tool_name =
if Version.buildnr <> "" && Version.tag <> "" then
- Printf.sprintf "This is CompCert %s,\nVersion: %s,\nBuild: %s,\nTag: %s\n" tool_name Version.version Version.buildnr Version.tag
+ Printf.sprintf "This is CompCert %s,\nVersion: %s,\nBuild: %s,\nTag: %s,\nBranch: %s\n"
+ tool_name Version.version Version.buildnr Version.tag Version.branch
else
Printf.sprintf "The CompCert %s,\nversion %s\n" tool_name Version.version