From fd69ac160b7252b2acaebaae02535b3f8c27dfb7 Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 14 Apr 2015 00:58:57 -0700 Subject: [PATCH] configure: Turn optimization back on iff --enable-optimize --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 4d576323f00..18fef588936 100755 --- a/configure +++ b/configure @@ -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