This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ gimli.debug = 0
8989miniz_oxide.debug = 0
9090object.debug = 0
9191
92+ # The only package that ever uses debug builds is bootstrap.
93+ # We care a lot about bootstrap's compile times, so don't include debug info for
94+ # dependencies, only bootstrap itself.
95+ [profile .dev ]
96+ debug = 0
97+ [profile .dev .package ]
98+ # Only use debuginfo=1 to further reduce compile times.
99+ bootstrap.debug = 1
100+
92101# We want the RLS to use the version of Cargo that we've got vendored in this
93102# repository to ensure that the same exact version of Cargo is used by both the
94103# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
Original file line number Diff line number Diff line change @@ -933,10 +933,9 @@ def build_bootstrap(self):
933933 env ["LIBRARY_PATH" ] = os .path .join (self .bin_root (True ), "lib" ) + \
934934 (os .pathsep + env ["LIBRARY_PATH" ]) \
935935 if "LIBRARY_PATH" in env else ""
936+
936937 # preserve existing RUSTFLAGS
937938 env .setdefault ("RUSTFLAGS" , "" )
938- env ["RUSTFLAGS" ] += " -Cdebuginfo=2"
939-
940939 build_section = "target.{}" .format (self .build )
941940 target_features = []
942941 if self .get_toml ("crt-static" , build_section ) == "true" :
You can’t perform that action at this time.
0 commit comments