aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BUILD.tools
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-07-28 10:22:57 +0200
committerGravatar Dmitry Lomov <dslomov@google.com>2017-07-31 16:05:56 +0200
commitc2c938ae2e75b5b881f06b18cce86dc87bae6fe6 (patch)
tree391b596c7ef66eeac9a0ef864f112bc6eb0f09c3 /src/BUILD.tools
parent639bba946ea01f5cf0a2cdb51c46012a602814a1 (diff)
Apply native binary launcher to sh_binary
This change: 1. Added launcher to @bazel_tools If the host platform is Windows, we use a prebuilt launcher.exe , otherwise the launcher needs to be built with MSVC first. 2. Launching sh_binary using native launcher. Change-Id: I5a63135455057fbfe04ff0cce7ec7994ef0c347a PiperOrigin-RevId: 163442540
Diffstat (limited to 'src/BUILD.tools')
-rw-r--r--src/BUILD.tools18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/BUILD.tools b/src/BUILD.tools
index d4e0a4164c..46a13e6e71 100644
--- a/src/BUILD.tools
+++ b/src/BUILD.tools
@@ -21,3 +21,21 @@ config_setting(
values = {"cpu": "x64_windows_msys"},
visibility = ["//visibility:public"],
)
+
+config_setting(
+ name = "host_windows",
+ values = {"host_cpu": "x64_windows"},
+ visibility = ["//visibility:public"],
+)
+
+config_setting(
+ name = "host_windows_msvc",
+ values = {"host_cpu": "x64_windows_msvc"},
+ visibility = ["//visibility:public"],
+)
+
+config_setting(
+ name = "host_windows_msys",
+ values = {"host_cpu": "x64_windows_msys"},
+ visibility = ["//visibility:public"],
+)