Skip to content

Commit

Permalink
configure: Turn optimization back on iff --enable-optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Apr 14, 2015
1 parent 87efd2c commit fd69ac1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure
Expand Up @@ -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
Expand Down

0 comments on commit fd69ac1

Please sign in to comment.