aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BUILD
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-03-08 14:30:49 +0000
committerGravatar Vladimir Moskva <vladmos@google.com>2017-03-08 15:07:05 +0000
commitcb8a5e25382cb67a80449ac1fb78ae9680650b92 (patch)
tree2e60ba611839365626caa8bd286d49cac0c35b7b /src/BUILD
parentc77eac95ffdee4f127e20266c41cb92cec2a8956 (diff)
Make Bazel build with MSVC-default-toolchain Bazel
After this change, a msys bazel can be built with a MSVC-default Bazel by adding --cpu=x64_windows_msys --host=x64_windows_msys See https://github.com/bazelbuild/bazel/issues/2627 -- Change-Id: Iaa82bf4dd911c5740b98d3b2739dfccca6203f79 Reviewed-on: https://cr.bazel.build/9293 PiperOrigin-RevId: 149532274 MOS_MIGRATED_REVID=149532274
Diffstat (limited to 'src/BUILD')
-rw-r--r--src/BUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/BUILD b/src/BUILD
index 60001d67ef..d350c6ac6f 100644
--- a/src/BUILD
+++ b/src/BUILD
@@ -9,6 +9,7 @@ filegroup(
":darwin": ["//src/main/native:libunix.dylib"],
":darwin_x86_64": ["//src/main/native:libunix.dylib"],
":windows": ["//src/main/native:windows_jni.dll"],
+ ":windows_msys": ["//src/main/native:windows_jni.dll"],
":windows_msvc": ["//src/main/native:windows_jni.dll"],
"//conditions:default": ["//src/main/native:libunix.so"],
}),
@@ -279,6 +280,12 @@ config_setting(
visibility = ["//visibility:public"],
)
+config_setting(
+ name = "windows_msys",
+ values = {"cpu": "x64_windows_msys"},
+ visibility = ["//visibility:public"],
+)
+
filegroup(
name = "srcs",
srcs = glob(["**"]) + [