Fix some build incompatibilities with new versions of Bazel
See #15137. PiperOrigin-RevId: 178037461
This commit is contained in:
parent
fb857dcef9
commit
d9a71ad0e5
@ -21,8 +21,9 @@ def tf_cc_logged_benchmark(
|
|||||||
fail(" ".join(("Target must be a single well-defined test, e.g.,",
|
fail(" ".join(("Target must be a single well-defined test, e.g.,",
|
||||||
"//path/to:test. Received: %s" % target)))
|
"//path/to:test. Received: %s" % target)))
|
||||||
|
|
||||||
all_tags = list(depset(tags) + \
|
all_tags = (
|
||||||
depset(["benchmark-test", "local", "manual", "regression-test"]))
|
depset(tags) + depset(
|
||||||
|
["benchmark-test", "local", "manual", "regression-test"])).to_list()
|
||||||
|
|
||||||
tf_py_test(
|
tf_py_test(
|
||||||
name = name,
|
name = name,
|
||||||
|
8
third_party/jpeg/jpeg.BUILD
vendored
8
third_party/jpeg/jpeg.BUILD
vendored
@ -323,14 +323,18 @@ JCONFIG_NOWIN_COMMON_SUBSTITUTIONS = {
|
|||||||
"#undef RIGHT_SHIFT_IS_UNSIGNED": "",
|
"#undef RIGHT_SHIFT_IS_UNSIGNED": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
JCONFIG_NOWIN_SIMD_SUBSTITUTIONS = JCONFIG_NOWIN_COMMON_SUBSTITUTIONS + {
|
JCONFIG_NOWIN_SIMD_SUBSTITUTIONS = {
|
||||||
"#undef WITH_SIMD": "#define WITH_SIMD 1",
|
"#undef WITH_SIMD": "#define WITH_SIMD 1",
|
||||||
}
|
}
|
||||||
|
|
||||||
JCONFIG_NOWIN_NOSIMD_SUBSTITUTIONS = JCONFIG_NOWIN_COMMON_SUBSTITUTIONS + {
|
JCONFIG_NOWIN_NOSIMD_SUBSTITUTIONS = {
|
||||||
"#undef WITH_SIMD": "",
|
"#undef WITH_SIMD": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JCONFIG_NOWIN_SIMD_SUBSTITUTIONS.update(JCONFIG_NOWIN_COMMON_SUBSTITUTIONS)
|
||||||
|
|
||||||
|
JCONFIG_NOWIN_NOSIMD_SUBSTITUTIONS.update(JCONFIG_NOWIN_COMMON_SUBSTITUTIONS)
|
||||||
|
|
||||||
template_rule(
|
template_rule(
|
||||||
name = "jconfig_nowin_nosimd",
|
name = "jconfig_nowin_nosimd",
|
||||||
src = "jconfig.h.in",
|
src = "jconfig.h.in",
|
||||||
|
4
third_party/sycl/sycl/BUILD.tpl
vendored
4
third_party/sycl/sycl/BUILD.tpl
vendored
@ -1,9 +1,9 @@
|
|||||||
licenses(["notice"]) # Apache 2.0
|
licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
load("@local_config_sycl//sycl:build_defs.bzl", "if_sycl")
|
load("@local_config_sycl//sycl:build_defs.bzl", "if_sycl")
|
||||||
load("platform", "sycl_library_path")
|
load(":platform.bzl", "sycl_library_path")
|
||||||
|
|
||||||
load("platform", "readlink_command")
|
load(":platform.bzl", "readlink_command")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user