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 8bea916 commit f214cf8Copy full SHA for f214cf8
src/bootstrap/builder.rs
@@ -2071,7 +2071,7 @@ impl<'a> Builder<'a> {
2071
// When we build Rust dylibs they're all intended for intermediate
2072
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
2073
// linking all deps statically into the dylib.
2074
- if matches!(mode, Mode::Std | Mode::Rustc) {
+ if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
2075
rustflags.arg("-Cprefer-dynamic");
2076
}
2077
0 commit comments