Skip to content

Commit d5cdb9e

Browse files
committed
Let rustc_private imply -Z prefer_deps_of_dynamic
1 parent 9506132 commit d5cdb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_metadata/src/dependency_format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
164164

165165
let mut upstream_in_dylibs = FxHashSet::default();
166166

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

0 commit comments

Comments
 (0)