diff options
author | Armand Navabi <navabi@google.com> | 2018-08-21 17:08:32 -0700 |
---|---|---|
committer | Armand Navabi <navabi@google.com> | 2018-08-24 05:35:02 +0000 |
commit | c171996c4179fd9cf73d26b8049d52876267e64f (patch) | |
tree | 95221c335db5ce834af629bd0b7a509f3e5229bf | |
parent | c18a844570fcbe3a361196754c37be71d0d61371 (diff) | |
download | jdk-c171996c4179fd9cf73d26b8049d52876267e64f.tar.gz |
Add langtools target for prebuilts JDK.
With the upgrade to bazel 0.16.1 we need to use our local prebuilts
JDK rather than @local_jdk. See bug for more details.
Bug: 111796300
Test: bazel test --config=remote //tools/base/...
Change-Id: I2b92f40a5fd9ac64d67a4e6161d631dc874c3c0a
-rw-r--r-- | BUILD | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -5,6 +5,24 @@ filegroup( srcs = glob(["**"]), ) +filegroup( + name = "langtools", + srcs = select({ + "//tools/base/bazel:darwin": [ + "mac/Contents/Home/jre/lib/jce.jar", + "mac/Contents/Home/lib/tools.jar", + ], + "//tools/base/bazel:windows": [ + "win64/jre/lib/jce.jar", + "win64/lib/tools.jar", + ], + "//conditions:default": [ + "linux/jre/lib/jce.jar", + "linux/lib/tools.jar", + ], + }), +) + # Nothing should depend on this library on windows. cc_library( name = "jni_headers", |