diff options
author | xingao <xingao@google.com> | 2017-11-01 13:03:40 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-11-02 10:04:04 -0400 |
commit | 1f0f1f1cd0d76af1b9a3cc9ee7c9a5a5717766b6 (patch) | |
tree | cbe1153858e7c6241318539226febc346efc61cf /tools/jdk | |
parent | 4ad39f1301f29b1024e6c970765ab9721cac8be0 (diff) |
Enable switching singlejar and ijar targets for remote execution.
When --define EXECUTOR=remote is specified in bazel command, embedded tool singlejar and ijar will be compiled remotely from source.
PiperOrigin-RevId: 174195094
Diffstat (limited to 'tools/jdk')
-rw-r--r-- | tools/jdk/BUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/jdk/BUILD b/tools/jdk/BUILD index 97eb22ad36..75aa5e46f6 100644 --- a/tools/jdk/BUILD +++ b/tools/jdk/BUILD @@ -73,7 +73,10 @@ alias( # contains the appropriate platform-dependent file. filegroup( name = "ijar", - srcs = glob(["ijar/*"]), + srcs = select({ + "//src:remote": ["//third_party/ijar:ijar"], + "//conditions:default": glob(["ijar/*"]), + }), ) # On Windows, Java implementation of singlejar is used. We create a little @@ -84,7 +87,10 @@ filegroup( # must be platform-independent. filegroup( name = "singlejar", - srcs = glob(["singlejar/*"]), + srcs = select({ + "//src:remote": ["//src/tools/singlejar:singlejar"], + "//conditions:default": glob(["singlejar/*"]), + }), ) filegroup( |