summaryrefslogtreecommitdiff
path: root/build_defs.bzl
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-05-14 10:15:32 -0700
committerJoshua Haberman <jhaberman@gmail.com>2019-05-14 10:15:32 -0700
commit301b6e2d7839b7f835d410a59f76c7fcf3e692f2 (patch)
treec4395f27d13133646d4a065b72edcf4c13cb4265 /build_defs.bzl
parent9a66356d95f9aff04570a6b4e9e34cdc8cd6fa6b (diff)
Removed map_dep() in favor of rewrites.
Diffstat (limited to 'build_defs.bzl')
-rw-r--r--build_defs.bzl12
1 files changed, 3 insertions, 9 deletions
diff --git a/build_defs.bzl b/build_defs.bzl
index 70854d9..5517933 100644
--- a/build_defs.bzl
+++ b/build_defs.bzl
@@ -239,12 +239,6 @@ google3_dep_map = {
"@com_google_protobuf//:protoc_lib": "//third_party/protobuf:libprotoc",
}
-def map_dep(dep):
- if is_bazel:
- return dep
- else:
- return google3_dep_map[dep]
-
def _get_real_short_path(file):
# For some reason, files from other archives have short paths that look like:
# ../com_google_protobuf/google/protobuf/descriptor.proto
@@ -430,10 +424,10 @@ _upb_proto_library_aspect = aspect(
"_protoc": attr.label(
executable = True,
cfg = "host",
- default = map_dep("@com_google_protobuf//:protoc"),
+ default = "@com_google_protobuf//:protoc",
),
"_cc_toolchain": attr.label(
- default = map_dep("@bazel_tools//tools/cpp:current_cc_toolchain"),
+ default = "@bazel_tools//tools/cpp:current_cc_toolchain",
),
"_upb": attr.label(default = ":upb"),
"_ext": attr.string(default = ".upb"),
@@ -481,7 +475,7 @@ upb_proto_srcs = rule(
"_protoc": attr.label(
executable = True,
cfg = "host",
- default = map_dep("@com_google_protobuf//:protoc"),
+ default = "@com_google_protobuf//:protoc",
),
"deps": attr.label_list(),
"ext": attr.string(default = ".upb")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback