From 3cf8eb53476ad260afd7521f775b9eb58806d3f8 Mon Sep 17 00:00:00 2001 From: Kosntantin Knizhnik Date: Sun, 22 Jun 2025 22:17:26 +0300 Subject: [PATCH] Build with casserts --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dee50a51c1..9567265dd2 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,8 @@ BUILD_TYPE ?= debug WITH_SANITIZERS ?= no PG_CFLAGS = -fsigned-char ifeq ($(BUILD_TYPE),release) - PG_CONFIGURE_OPTS = --enable-debug --with-openssl - PG_CFLAGS += -O2 -g3 $(CFLAGS) + PG_CONFIGURE_OPTS = --enable-debug --with-openssl --enable-cassert --enable-depend + PG_CFLAGS += -O0 -g3 $(CFLAGS) PG_LDFLAGS = $(LDFLAGS) # Unfortunately, `--profile=...` is a nightly feature CARGO_BUILD_FLAGS += --release