Skip to content

Commit

Permalink
feat(kong-ngx-build): enable the no-pool patch in debug mode
Browse files Browse the repository at this point in the history
to facilitate debugging memory issues
  • Loading branch information
catbro666 authored and hutchic committed Nov 14, 2022
1 parent e0e5f5e commit 4db2a67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openresty-build-tools/kong-ngx-build
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ main() {

if [ $DEBUG == 1 ]; then
OPENRESTY_OPTS+=('--with-debug')
OPENRESTY_OPTS+=('--with-no-pool-patch')
OPENRESTY_OPTS+=('--with-luajit-xcflags="-DLUAJIT_USE_VALGRIND -DLUA_USE_ASSERT -DLUA_USE_APICHECK -DLUAJIT_USE_SYSMALLOC"')
fi

Expand Down

0 comments on commit 4db2a67

Please sign in to comment.