aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BUILD
diff options
context:
space:
mode:
authorGravatar xingao <xingao@google.com>2017-11-01 13:03:40 -0400
committerGravatar John Cater <jcater@google.com>2017-11-02 10:04:04 -0400
commit1f0f1f1cd0d76af1b9a3cc9ee7c9a5a5717766b6 (patch)
treecbe1153858e7c6241318539226febc346efc61cf /src/BUILD
parent4ad39f1301f29b1024e6c970765ab9721cac8be0 (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 'src/BUILD')
-rw-r--r--src/BUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/BUILD b/src/BUILD
index 3c227b5a51..a5f025ccc7 100644
--- a/src/BUILD
+++ b/src/BUILD
@@ -385,6 +385,12 @@ config_setting(
visibility = ["//visibility:public"],
)
+config_setting(
+ name = "remote",
+ values = {"define": "EXECUTOR=remote"},
+ visibility = ["//visibility:public"],
+)
+
filegroup(
name = "srcs",
srcs = glob(["**"]) + [