Skip to content

Commit deec30b

Browse files
Explicitly specify symbol visibility when building std
This should be a no-op, since it's currently the default.
1 parent 759e07f commit deec30b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+5
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ impl Step for Std {
266266
cargo.rustflag(rustflag);
267267
}
268268

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+
269274
let _guard = builder.msg(
270275
Kind::Build,
271276
compiler.stage,

0 commit comments

Comments
 (0)