mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
configure: Turn optimization back on iff --enable-optimize
This commit is contained in:
parent
87efd2cd74
commit
fd69ac160b
5
configure
vendored
5
configure
vendored
@ -645,6 +645,11 @@ esac
|
||||
# Adjust perf and debug options for debug mode
|
||||
if [ -n "$CFG_ENABLE_DEBUG" ]; then
|
||||
msg "debug mode enabled, setting performance options"
|
||||
if [ -z "$CFG_ENABLE_OPTIMIZE_PROVIDED" ]; then
|
||||
msg "optimization not explicitly enabled, disabling optimization"
|
||||
CFG_DISABLE_OPTIMIZE=1
|
||||
CFG_DISABLE_OPTIMIZE_CXX=1
|
||||
fi
|
||||
CFG_ENABLE_LLVM_ASSERTIONS=1
|
||||
CFG_ENABLE_DEBUG_ASSERTIONS=1
|
||||
CFG_ENABLE_DEBUG_JEMALLOC=1
|
||||
|
Loading…
Reference in New Issue
Block a user