Skip to content

Commit 953f381

Browse files
Rollup merge of rust-lang#43297 - infinity0:master, r=alexcrichton
configure: allow distros to disable debuginfo-only-std This allows builders to generate debugging information for everything, even in a stable release build. This is useful for distros like Fedora (already carrying a [similar patch](https://src.fedoraproject.org/cgit/rpms/rust.git/tree/rust-1.16.0-configure-no-override.patch)) and Debian that automatically put all debuginfo in separate "debug symbol" packages. This commit preserves the default behaviour of switching these on when a non-dev channel is selected, but allows the user to override this via the `./configure` command line. In theory, one could also do this via `bootstrap/config.toml` but it doesn't work currently due to rust-lang#43295.
2 parents 5669c99 + ffae5de commit 953f381

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure

+4-4
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ case "$CFG_RELEASE_CHANNEL" in
560560
*-pc-windows-gnu)
561561
;;
562562
*)
563-
CFG_ENABLE_DEBUGINFO_LINES=1
564-
CFG_ENABLE_DEBUGINFO_ONLY_STD=1
563+
enable_if_not_disabled debuginfo-lines
564+
enable_if_not_disabled debuginfo-only-std
565565
;;
566566
esac
567567

@@ -572,8 +572,8 @@ case "$CFG_RELEASE_CHANNEL" in
572572
*-pc-windows-gnu)
573573
;;
574574
*)
575-
CFG_ENABLE_DEBUGINFO_LINES=1
576-
CFG_ENABLE_DEBUGINFO_ONLY_STD=1
575+
enable_if_not_disabled debuginfo-lines
576+
enable_if_not_disabled debuginfo-only-std
577577
;;
578578
esac
579579
;;

0 commit comments

Comments
 (0)