Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR extends the compile script for the Yices2j JNI-wrapper to support a Darwin-based system. The wrapper is statically linked with its dependencies to produce the single file
libyices2j.dylib
.I tested it on an Apple M2 with Sonoma 14.6.1. The targets were
arm64
, as well asx86_64
(Rosetta 2, witharch x86_64 ./compile.sh
). I compiled withclang
. For this test, I built Yices 2.6.4 with./configure --enable-thread-safety
. Dependencies were installed usingbrew
:gmp
6.3.0,gperf
3.1,openjdk@21
21.0.4. The build may deviate from what you use on Linux.The modifications on
compile.sh
should not interfere with the Linux build, but this must be tested. I also modified the wrapper code to fix usages from potentially uninitialized variables.This may conflict with #215.