We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759e07f commit deec30bCopy full SHA for deec30b
src/bootstrap/src/core/build_steps/compile.rs
@@ -266,6 +266,11 @@ impl Step for Std {
266
cargo.rustflag(rustflag);
267
}
268
269
+ // For now, we always build the standard library with interposable (default) visibility,
270
+ // since a build of the standard library with protected visibility would result in link
271
+ // errors if linked with GNU ld < 2.40.
272
+ cargo.rustflag("-Zdefault-visibility=interposable");
273
+
274
let _guard = builder.msg(
275
Kind::Build,
276
compiler.stage,
0 commit comments