Skip to content

Commit b2f9e68

Browse files
committed
Link stage 2 tools dynamically to libstd
1 parent c509d26 commit b2f9e68

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
@@ -1838,7 +1838,7 @@ impl<'a> Builder<'a> {
18381838
// When we build Rust dylibs they're all intended for intermediate
18391839
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
18401840
// linking all deps statically into the dylib.
1841-
if matches!(mode, Mode::Std | Mode::Rustc) {
1841+
if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
18421842
rustflags.arg("-Cprefer-dynamic");
18431843
}
18441844

0 commit comments

Comments
 (0)