File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ gimli.debug = 0
89
89
miniz_oxide.debug = 0
90
90
object.debug = 0
91
91
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
+
92
101
# We want the RLS to use the version of Cargo that we've got vendored in this
93
102
# repository to ensure that the same exact version of Cargo is used by both the
94
103
# 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):
933
933
env ["LIBRARY_PATH" ] = os .path .join (self .bin_root (True ), "lib" ) + \
934
934
(os .pathsep + env ["LIBRARY_PATH" ]) \
935
935
if "LIBRARY_PATH" in env else ""
936
+
936
937
# preserve existing RUSTFLAGS
937
938
env .setdefault ("RUSTFLAGS" , "" )
938
- env ["RUSTFLAGS" ] += " -Cdebuginfo=2"
939
-
940
939
build_section = "target.{}" .format (self .build )
941
940
target_features = []
942
941
if self .get_toml ("crt-static" , build_section ) == "true" :
You can’t perform that action at this time.
0 commit comments