aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Driver.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-07-01 17:25:44 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-07-01 17:25:44 +0200
commitb59b2b182a6832e1b6ebf3cf7ba4fd1943843b74 (patch)
tree3fa8c338c917d4f72f3408b6a45cffcc6e1e0f8a /driver/Driver.ml
parentd8ed56833c508b5103a900ef04975013bd9ba77b (diff)
downloadcompcert-b59b2b182a6832e1b6ebf3cf7ba4fd1943843b74.tar.gz
compcert-b59b2b182a6832e1b6ebf3cf7ba4fd1943843b74.zip
Removed the version from the compcert.ini file and add it again in a separate file.
Diffstat (limited to 'driver/Driver.ml')
-rw-r--r--driver/Driver.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 805d5405..402bdb65 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -145,7 +145,7 @@ let parse_c_file sourcename ifile =
(* Dump Asm code in binary format for the validator *)
-let sdump_magic_number = "CompCertSDUMP" ^ Configuration.version
+let sdump_magic_number = "CompCertSDUMP" ^ Version.version
let dump_asm asm destfile =
let oc = open_out_bin destfile in
@@ -387,7 +387,10 @@ let explode_comma_option s =
| hd :: tl -> tl
let version_string =
- "The CompCert C verified compiler, version "^ Configuration.version ^ "\n"
+ if Version.buildnr <> "" && Version.tag <> "" then
+ sprintf "The CompCert verified compiler, %s,%s,%s\n" Version.version Version.buildnr Version.tag
+ else
+ "The CompCert C verified compiler, version "^ Version.version ^ "\n"
let usage_string =
version_string ^