修复在release编译模式下,pagehack编译报错

This commit is contained in:
zhang_xubo
2023-04-28 09:05:39 +08:00
parent c09ccbb835
commit a660bc0d6f
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,9 @@ OBJS = pagehack.o \
PROGRAM = pagehack
all: submake-pagecompression
exclude_option = -fPIC
override CPPFLAGS := $(filter-out $(exclude_option),$(CPPFLAGS))
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)

View File

@ -198,7 +198,11 @@ static int PgIndexRelTupleParserCursor = -1;
/* For Assert(...) macros. */
#ifdef USE_ASSERT_CHECKING
THR_LOCAL bool assert_enabled = true;
#else
THR_LOCAL bool assert_enabled = false;
#endif
/* Options */
bool only_vm = false;