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 c509d26 commit b2f9e68Copy full SHA for b2f9e68
src/bootstrap/builder.rs
@@ -1838,7 +1838,7 @@ impl<'a> Builder<'a> {
1838
// When we build Rust dylibs they're all intended for intermediate
1839
// usage, so make sure we pass the -Cprefer-dynamic flag instead of
1840
// linking all deps statically into the dylib.
1841
- if matches!(mode, Mode::Std | Mode::Rustc) {
+ if matches!(mode, Mode::Std | Mode::Rustc | Mode::ToolRustc) {
1842
rustflags.arg("-Cprefer-dynamic");
1843
}
1844
0 commit comments