Skip to content

Commit 9d62eb3

Browse files
committed
b
Signed-off-by: Calvin Neo <[email protected]>
1 parent 29a7826 commit 9d62eb3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,21 @@ endif
193193
build:
194194
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
195195

196+
# Do not call make build which could duplicate ENABLE_FEATURES
197+
ifeq ($(PROXY_FRAME_POINTER),1)
198+
debug: ENABLE_FEATURES += pprof-fp
199+
endif
196200
debug: export PROXY_PROFILE=debug
197201
debug:
198-
make build
202+
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
203+
199204

205+
ifeq ($(PROXY_FRAME_POINTER),1)
206+
release: ENABLE_FEATURES += pprof-fp
207+
endif
200208
release: export PROXY_PROFILE=release
201209
release:
202-
make build
210+
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
203211

204212
## Testing
205213
## -------

0 commit comments

Comments
 (0)