Skip to content

Commit

Permalink
Explicitly specify symbol visibility when building std
Browse files Browse the repository at this point in the history
This should be a no-op, since it's currently the default.
  • Loading branch information
davidlattimore committed Oct 31, 2024
1 parent 759e07f commit deec30b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ impl Step for Std {
cargo.rustflag(rustflag);
}

// For now, we always build the standard library with interposable (default) visibility,
// since a build of the standard library with protected visibility would result in link
// errors if linked with GNU ld < 2.40.
cargo.rustflag("-Zdefault-visibility=interposable");

let _guard = builder.msg(
Kind::Build,
compiler.stage,
Expand Down

0 comments on commit deec30b

Please sign in to comment.