Bump the ruy repository reference.
PiperOrigin-RevId: 313928014
diff --git a/ruy/BUILD b/ruy/BUILD
index 10ea17b..e2a7c60 100644
--- a/ruy/BUILD
+++ b/ruy/BUILD
@@ -32,6 +32,11 @@
)
config_setting(
+ name = "windows",
+ flag_values = {"//tools/cpp:cc_target_os": "windows"},
+)
+
+config_setting(
name = "optimized",
values = {
"compilation_mode": "opt",
@@ -944,7 +949,7 @@
# need defines, not copts, because it's controlling a header, test.h
defines = ruy_test_ext_defines(),
linkopts = select({
- "@bazel_tools//src/conditions:windows": [],
+ ":windows": [],
"//conditions:default": ["-lm"],
}),
deps = [
diff --git a/ruy/build_defs.bzl b/ruy/build_defs.bzl
index 4b53c38..0211cfa 100644
--- a/ruy/build_defs.bzl
+++ b/ruy/build_defs.bzl
@@ -3,18 +3,23 @@
# Helper for ruy_copts().
# Returns warnings flags to use for all ruy code.
def ruy_copts_warnings():
- return [
- # TensorFlow is C++14 at the moment.
- "-Wc++14-compat",
- # Warn on preprocessor expansion of an undefined token, e.g. catching typos
- # such as `#ifdef __linus__` instead of `#ifdef __linux__`.
- "-Wundef",
- ] + select({
- # We run into trouble on some Windows clang toolchains with -Wextra.
- "@bazel_tools//src/conditions:windows": [],
+ return select({
+ "//ruy:windows": [
+ # We run into trouble on Windows toolchains with warning flags:
+ # - Some clang-based toolchains have more warnings enabled in -Wextra.
+ # - MSVC does not like -Wc++14-compat
+ # We could be more aggressive in enabling supported warnings on each
+ # Windows toolchain, but we compromise with keeping BUILD files simple
+ # by limiting the number of config_setting's.
+ ],
"//conditions:default": [
"-Wall",
"-Wextra",
+ # TensorFlow is C++14 at the moment.
+ "-Wc++14-compat",
+ # Warn on preprocessor expansion of an undefined token, e.g. catching typos
+ # such as `#ifdef __linus__` instead of `#ifdef __linux__`.
+ "-Wundef",
],
})