Skip to content

Commit 0609961

Browse files
Add an option to skip loading the library
Set the system property 'yices.skipAutoloader' to 'true' if the binary has already been preloaded
1 parent 8fbd3a5 commit 0609961

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/com/sri/yices/Yices.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ public final class Yices {
1313
*/
1414
static {
1515
try {
16-
System.loadLibrary("yices2java");
16+
String skip = System.getProperty("yices.skipAutoloader", "false");
17+
if (!Boolean.parseBoolean(skip)) {
18+
System.loadLibrary("yices2java");
19+
}
1720
init();
1821
is_ready = true;
1922
} catch (LinkageError e) {

0 commit comments

Comments
 (0)