Skip to content

Commit 6b95d8b

Browse files
committed
Auto merge of #24205 - brson:debug, r=alexcrichton
This makes the default configuration fully optimized, with no debugging options, no llvm asserts, renames --enable-debug to --enable-debug-assertions, and adds --enable-debug as a blanket option that toggles various things, per #17665. It does not add a `--enable-release` flag since that would be a no-op. cc @nrc Fixes #22390 Fixes #17081 Partially addresses #17665
2 parents 88fc543 + 0e0c841 commit 6b95d8b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

configure

+7-3
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,15 @@ fi
617617
step_msg "validating $CFG_SELF args"
618618
validate_opt
619619

620-
# Validate the release channel
620+
# Validate the release channel, and configure options
621621
case "$CFG_RELEASE_CHANNEL" in
622-
(dev | nightly | beta | stable)
622+
nightly )
623+
msg "overriding settings for $CFG_RELEASE_CHANNEL"
624+
CFG_ENABLE_LLVM_ASSERTIONS=1
623625
;;
624-
(*)
626+
dev | beta | stable)
627+
;;
628+
*)
625629
err "release channel must be 'dev', 'nightly', 'beta' or 'stable'"
626630
;;
627631
esac

0 commit comments

Comments
 (0)