about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-08-03 14:38:10 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-08-03 14:38:10 +0000
commitc98c51236da467f877070df7c80dcb603249ce47 (patch)
tree73d31a49465a626dcb91c4a91fba5a93f28a65cc /src
parent4d3d96a194a50ad58764f833939726b5163df67d (diff)
downloadrust-c98c51236da467f877070df7c80dcb603249ce47.tar.gz
rust-c98c51236da467f877070df7c80dcb603249ce47.zip
strip librustc_driver.so even at stage 1
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/compile.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs
index c7c1f3be2e9..34f19803de0 100644
--- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -898,13 +898,11 @@ impl Step for Rustc {
         // unexpected debuginfo from dependencies, for example from the C++ standard library used in
         // our LLVM wrapper. Unless we're explicitly requesting `librustc_driver` to be built with
         // debuginfo (via the debuginfo level of the executables using it): strip this debuginfo
-        // away after the fact. This is to make the distributed artifacts smaller, and therefore we
-        // only do this at stage >= 1.
+        // away after the fact.
         // FIXME: to make things simpler for now, limit this to the host and target where we know
         // `strip -g` is both available and will fix the issue, i.e. on a x64 linux host that is not
         // cross-compiling. Expand this to other appropriate targets in the future.
-        if compiler.stage != 0
-            && builder.config.rust_debuginfo_level_rustc == DebuginfoLevel::None
+        if builder.config.rust_debuginfo_level_rustc == DebuginfoLevel::None
             && builder.config.rust_debuginfo_level_tools == DebuginfoLevel::None
             && target == "x86_64-unknown-linux-gnu"
             && target == builder.config.build