File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments