Skip to content

Commit e25c007

Browse files
TristonianJonescopybara-github
authored andcommitted
Internal build tool change
PiperOrigin-RevId: 979936565
1 parent 045e576 commit e25c007

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

verifier/src/main/java/dev/cel/verifier/BUILD.bazel

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@rules_java//java:defs.bzl", "java_library")
2+
load("//storage/binfs:binfs.bzl", "java_binary_deploy_jar")
23

34
package(
45
default_applicable_licenses = ["//:license"],
@@ -190,3 +191,13 @@ java_library(
190191
"@maven//:tools_aqua_z3_turnkey",
191192
],
192193
)
194+
195+
java_binary_deploy_jar(
196+
name = "cel-verifier",
197+
jvm_flags = ["-Dz3.skipLibraryLoad=true"],
198+
main_class = "dev.cel.verifier.tools.CelVerifierTool",
199+
visibility = ["//verifier:__subpackages__"],
200+
runtime_deps = [
201+
"//verifier/src/main/java/dev/cel/verifier/tools:tools_lib",
202+
],
203+
)

verifier/src/main/java/dev/cel/verifier/tools/CelVerifierTool.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ public Integer call() {
307307
}
308308

309309
public static void main(String[] args) {
310+
if (System.getProperty("z3.skipLibraryLoad") == null) {
311+
System.setProperty("z3.skipLibraryLoad", "true");
312+
}
310313
int exitCode = new CommandLine(new CelVerifierTool()).execute(args);
311314
System.exit(exitCode);
312315
}

0 commit comments

Comments
 (0)