Skip to content

Commit

Permalink
adjust VSTlib opam config; fix util/make_version to work on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-appel committed Apr 12, 2023
1 parent a3c11f5 commit 7a645b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/_CoqProject
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-Q proof VSTlib
-Q test VSTlibtest
proof/version.v
proof/math_extern.v
proof/spec_math.v
proof/verif_math.v
Expand Down
4 changes: 2 additions & 2 deletions lib/coq-vst-lib.opam
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
opam-version: "2.0"
version: "dev"
version: "2.12"
synopsis: "VSTlib: VST-verified C library for VST-verified clients"
description: "These program modules, in the form of Verified Software Units,
may be linked with client-module code (at the .c/.o level) and proofs (at the .v level)."
authors: [
"Andrew W. Appel"
]
maintainer: "Andrew W. Appel"
maintainer: "Andrew W. Appel <[email protected]>"
homepage: "http://"
dev-repo: "git+https://github.com/PrincetonUniversity/VST"
bug-reports: "https://github.com/PrincetonUniversity/VST/issues"
Expand Down
2 changes: 2 additions & 0 deletions lib/proof/version.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Require Import ZArith Coq.Strings.String. Open Scope string.
Definition release := "2.12".
7 changes: 6 additions & 1 deletion util/make_version
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#usage: util/make_version Bitsize Compcert-version
F=veric/version.v
set -e
if [ -f `which gdate` ]; then
DATE=gdate
else
DATE=date
fi
printf >$F 'Require Import ZArith Coq.Strings.String. Open Scope string.\n'
printf >>$F 'Definition git_rev := "'
if [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then
Expand All @@ -12,7 +17,7 @@ printf >>$F 'Definition release := "'
tr -d '[:cntrl:]' <VERSION >>$F
printf >>$F '".\n'
printf >>$F 'Definition date := "'
date --rfc-3339=date | tr -d '[:cntrl:]' >>$F
$DATE --rfc-3339=date | tr -d '[:cntrl:]' >>$F
printf >>$F '".\n'
printf >>$F 'Definition bitsize : Z := %d.\n' $1
printf >>$F 'Definition compcert_version := "%s".' $2

0 comments on commit 7a645b4

Please sign in to comment.