Skip to content

Commit f214cf8

Browse files
committed
Link stage 2 tools dynamically to libstd
1 parent 8bea916 commit f214cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ impl<'a> Builder<'a> {
20712071
// When we build Rust dylibs they're all intended for intermediate
20722072
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
20732073
// linking all deps statically into the dylib.
2074-
if matches!(mode, Mode::Std | Mode::Rustc) {
2074+
if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
20752075
rustflags.arg("-Cprefer-dynamic");
20762076
}
20772077

0 commit comments

Comments
 (0)