Skip to content

Commit

Permalink
Don't transitively include compile_data from other targets
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Jul 2, 2021
1 parent 41370be commit 726f687
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ def collect_inputs(

linker_depset = cc_toolchain.all_files

# Collect compile data from the crate's dependencies
transitive_compile_data = depset(transitive = [info.compile_data for info in dep_info.transitive_crates.to_list()])

compile_inputs = depset(
getattr(files, "data", []) +
[toolchain.rustc] +
Expand All @@ -295,7 +292,6 @@ def collect_inputs(
linker_depset,
crate_info.srcs,
dep_info.transitive_libs,
transitive_compile_data,
crate_info.compile_data,
],
)
Expand Down
7 changes: 0 additions & 7 deletions test/compile_data/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,3 @@ rust_test(
name = "compile_data_unit_test",
crate = ":compile_data",
)

rust_test(
name = "compile_data_integration_test",
srcs = ["compile_data_test.rs"],
edition = "2018",
deps = [":compile_data"],
)
9 changes: 0 additions & 9 deletions test/compile_data/compile_data_test.rs

This file was deleted.

0 comments on commit 726f687

Please sign in to comment.