Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Stdlib. instead of Pervasives. due to deprecation #5730

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

XVilka
Copy link
Contributor

@XVilka XVilka commented Dec 22, 2021

Recent versions of OCaml (> 4.07) have deprecated the module Pervasives in favor of Stdlib:

Fixes the following warning:

ocamlfind ocamlopt -package zarith  -I api/ml -o api/ml/z3.cmx -c ../src/api/ml/z3.ml
File "../src/api/ml/z3.ml", line 206, characters 16-34:
206 |   let compare = Pervasives.compare
                      ^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims

https://dev.azure.com/Z3Public/Z3/_build/results?buildId=2801&view=logs&j=60487b59-e8f4-5a1c-7805-8cc27f5a1dc1&t=ca2a1193-486e-5e6c-d734-b6804764b299&l=76

@NikolajBjorner NikolajBjorner merged commit f3af219 into Z3Prover:master Dec 22, 2021
@XVilka XVilka deleted the ocaml-pervasives-deprecation branch December 22, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants