We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb37525 commit 434bb17Copy full SHA for 434bb17
src/bootstrap/builder.rs
@@ -2077,7 +2077,7 @@ impl<'a> Builder<'a> {
2077
// When we build Rust dylibs they're all intended for intermediate
2078
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
2079
// linking all deps statically into the dylib.
2080
- if matches!(mode, Mode::Std | Mode::Rustc) {
+ if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
2081
rustflags.arg("-Cprefer-dynamic");
2082
}
2083
0 commit comments