PrincetonUniversity / VST

Verified Software Toolchain
https://vst.cs.princeton.edu
Other
442 stars 93 forks source link

Resolve OPAM conflict between VST and zlist #595

Closed QinshiWang closed 2 years ago

QinshiWang commented 2 years ago

Currently the OPAM packages coq-vst and coq-vst-zlist are conflicting, because they are installed to the same directory. So I added a flag ZLIST (similar to COMPCERT) in Makefile. ZLIST=bundled by default, so for VST developers who don't explicitly set it, the source code in the repo will be used. The other possible value is ZLIST=platform, which means to use zlist from the installed library (e.g. OPAM). When installing VST from OPAM, it needs to depend on zlist and use the flag ZLIST=platform. I edited OPAM files accordingly. Also notice that, the OPAM files in the repo have "coq-vst-zlist" {= "dev"}, because they are the dev version as well. For released versions, we should depend on the same version number of zlist as VST.

I tested on Coq 8.15.2.