Skip to content

Commit

Permalink
Deduplicate input to ctx.expand_location (bazelbuild#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored and cfredric committed Feb 16, 2022
1 parent f9ef71c commit a0f678e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,9 @@ def construct_arguments(
rustc_flags.add_all(rust_std_paths, before_each = "-L", format_each = "%s")
rustc_flags.add_all(rust_flags)

data_paths = getattr(attr, "data", []) + getattr(attr, "compile_data", [])
# Deduplicate data paths due to https://github.com/bazelbuild/bazel/issues/14681
data_paths = depset(direct = getattr(attr, "data", []) + getattr(attr, "compile_data", [])).to_list()

rustc_flags.add_all(
expand_list_element_locations(
ctx,
Expand Down

0 comments on commit a0f678e

Please sign in to comment.