Skip to content

Commit 434bb17

Browse files
committed
Link stage 2 tools dynamically to libstd
1 parent eb37525 commit 434bb17

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
@@ -2077,7 +2077,7 @@ impl<'a> Builder<'a> {
20772077
// When we build Rust dylibs they're all intended for intermediate
20782078
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
20792079
// linking all deps statically into the dylib.
2080-
if matches!(mode, Mode::Std | Mode::Rustc) {
2080+
if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
20812081
rustflags.arg("-Cprefer-dynamic");
20822082
}
20832083

0 commit comments

Comments
 (0)