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 https://github.com/rust-lang/rust/issues/22390 Fixes https://github.com/rust-lang/rust/issues/17081 Partially addresses https://github.com/rust-lang/rust/issues/17665
This commit is contained in:
commit
6b95d8bed8
10
configure
vendored
10
configure
vendored
@ -617,11 +617,15 @@ fi
|
||||
step_msg "validating $CFG_SELF args"
|
||||
validate_opt
|
||||
|
||||
# Validate the release channel
|
||||
# Validate the release channel, and configure options
|
||||
case "$CFG_RELEASE_CHANNEL" in
|
||||
(dev | nightly | beta | stable)
|
||||
nightly )
|
||||
msg "overriding settings for $CFG_RELEASE_CHANNEL"
|
||||
CFG_ENABLE_LLVM_ASSERTIONS=1
|
||||
;;
|
||||
(*)
|
||||
dev | beta | stable)
|
||||
;;
|
||||
*)
|
||||
err "release channel must be 'dev', 'nightly', 'beta' or 'stable'"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user