Skip to content

Commit fd69ac1

Browse files
committed
configure: Turn optimization back on iff --enable-optimize
1 parent 87efd2c commit fd69ac1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configure

+5
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,11 @@ esac
645645
# Adjust perf and debug options for debug mode
646646
if [ -n "$CFG_ENABLE_DEBUG" ]; then
647647
msg "debug mode enabled, setting performance options"
648+
if [ -z "$CFG_ENABLE_OPTIMIZE_PROVIDED" ]; then
649+
msg "optimization not explicitly enabled, disabling optimization"
650+
CFG_DISABLE_OPTIMIZE=1
651+
CFG_DISABLE_OPTIMIZE_CXX=1
652+
fi
648653
CFG_ENABLE_LLVM_ASSERTIONS=1
649654
CFG_ENABLE_DEBUG_ASSERTIONS=1
650655
CFG_ENABLE_DEBUG_JEMALLOC=1

0 commit comments

Comments
 (0)