aboutsummaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-08-06 07:56:51 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-08-09 09:22:07 +0200
commit3282049bdf62d053a7ac9a0157ca3ef0f0c4ec27 (patch)
treeb7710bc10daf7f89e1551b054659e4774f07b169 /driver
parentfe5e2bd92cfd89d74b83dffe620bc08d459a398c (diff)
downloadjazzer-api-3282049bdf62d053a7ac9a0157ca3ef0f0c4ec27.tar.gz
Find libjvm with a repository rule
libjvm lives in different subpaths of JAVA_HOME, depending both on the OS and the Java version. Since it is currently not possible to select a dependency based on the Java version, supporting Java 8 required a custom build setting. This also broke bazel query (but not cquery). By loading libjvm from a simple repository rule, we can cover all OSes and Java versions with a single dependency, even if libjvm.so is installed in a non-standard location.
Diffstat (limited to 'driver')
-rw-r--r--driver/BUILD.bazel2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/BUILD.bazel b/driver/BUILD.bazel
index f7b09efe..d4d166a2 100644
--- a/driver/BUILD.bazel
+++ b/driver/BUILD.bazel
@@ -50,13 +50,13 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
":sanitizer_hooks_with_pc",
- "//third_party/jni:jni_libs",
"@bazel_tools//tools/cpp/runfiles",
"@bazel_tools//tools/jdk:jni",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_glog//:glog",
"@jazzer_com_github_gflags_gflags//:gflags",
+ "@jazzer_libjvm//:libjvm",
],
)