We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8e5660 + 708099a commit 9993e27Copy full SHA for 9993e27
src/bootstrap/src/core/build_steps/compile.rs
@@ -2143,6 +2143,12 @@ pub enum CargoMessage<'a> {
2143
}
2144
2145
pub fn strip_debug(builder: &Builder<'_>, target: TargetSelection, path: &Path) {
2146
+ // Only perform stripping in dist builds, to save time (strip can be slow) during local
2147
+ // development.
2148
+ if builder.kind != Kind::Dist {
2149
+ return;
2150
+ }
2151
+
2152
// FIXME: to make things simpler for now, limit this to the host and target where we know
2153
// `strip -g` is both available and will fix the issue, i.e. on a x64 linux host that is not
2154
// cross-compiling. Expand this to other appropriate targets in the future.
0 commit comments