Skip to content

Commit

Permalink
Let rustc_private imply -Z prefer_deps_of_dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 12, 2024
1 parent 9506132 commit d5cdb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_metadata/src/dependency_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {

let mut upstream_in_dylibs = FxHashSet::default();

if sess.opts.unstable_opts.prefer_deps_of_dynamic {
if sess.opts.unstable_opts.prefer_deps_of_dynamic || tcx.features().rustc_private {
// Find all libraries statically linked to upstream dylibs.
for &cnum in all_dylibs() {
let deps = tcx.dylib_dependency_formats(cnum);
Expand Down

0 comments on commit d5cdb9e

Please sign in to comment.