3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +00:00

Bugfix: post-build sanity check when an old version of ocaml-z3 is installed (#7815)

* fix: add generating META for ocamlfind.

* Patch macos. We need to keep the `@rpath` and use environment var to enable the test because we need to leave it to be fixed by package managers.

* Trigger CI.

* Debug.

* Debug.

* Debug.

* Debug.

* Debug.

* Debug.

* Hacky fix for ocaml building warning.

* Fix typo and rename variables.

* Fix cmake for ocaml test, using local libz3 explicit.
This commit is contained in:
Shiwei Weng 翁士伟 2025-08-24 22:49:04 -05:00 committed by GitHub
parent 12563c6963
commit 894c0e9fbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,6 +255,7 @@ set(z3ml_example_src ${PROJECT_SOURCE_DIR}/examples/ml/ml_example.ml)
add_custom_command(
TARGET build_z3_ocaml_bindings POST_BUILD
COMMAND "${OCAMLFIND}" ocamlc
-cclib "${libz3_path}/libz3${so_ext}"
-o "${z3ml_bin}/ml_example.byte"
-package zarith
-linkpkg
@ -270,6 +271,7 @@ add_custom_command(
add_custom_command(
TARGET build_z3_ocaml_bindings POST_BUILD
COMMAND "${OCAMLFIND}" ocamlopt
-cclib "${libz3_path}/libz3${so_ext}"
-o "${z3ml_bin}/ml_example"
-package zarith
-linkpkg