Skip to content

Commit c98c512

Browse files
committed
strip librustc_driver.so even at stage 1
1 parent 4d3d96a commit c98c512

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bootstrap/compile.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -898,13 +898,11 @@ impl Step for Rustc {
898898
// unexpected debuginfo from dependencies, for example from the C++ standard library used in
899899
// our LLVM wrapper. Unless we're explicitly requesting `librustc_driver` to be built with
900900
// debuginfo (via the debuginfo level of the executables using it): strip this debuginfo
901-
// away after the fact. This is to make the distributed artifacts smaller, and therefore we
902-
// only do this at stage >= 1.
901+
// away after the fact.
903902
// FIXME: to make things simpler for now, limit this to the host and target where we know
904903
// `strip -g` is both available and will fix the issue, i.e. on a x64 linux host that is not
905904
// cross-compiling. Expand this to other appropriate targets in the future.
906-
if compiler.stage != 0
907-
&& builder.config.rust_debuginfo_level_rustc == DebuginfoLevel::None
905+
if builder.config.rust_debuginfo_level_rustc == DebuginfoLevel::None
908906
&& builder.config.rust_debuginfo_level_tools == DebuginfoLevel::None
909907
&& target == "x86_64-unknown-linux-gnu"
910908
&& target == builder.config.build

0 commit comments

Comments
 (0)