From bc24da11b27b6e180ab1716e57caa751eb4f5f00 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Mon, 20 Jun 2016 17:18:33 -0400 Subject: [PATCH] [node] add BUILDTYPE=Debug support to make node --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3dd7c7d903..f45925f0cee 100644 --- a/Makefile +++ b/Makefile @@ -199,11 +199,15 @@ apackage: NODE_PRE_GYP = $(shell npm bin)/node-pre-gyp NODE_OUTPUT_PATH = build/node-$(BUILD_PLATFORM)-$(BUILD_PLATFORM_VERSION) +ifeq ($(BUILDTYPE), Debug) + NODE_DEBUG = "--debug" +endif + $(NODE_OUTPUT_PATH)/config.gypi: platform/$(BUILD_PLATFORM)/scripts/configure.sh $(CONFIG_DEPENDENCIES) ./configure $< $@ $(BUILD_PLATFORM) $(BUILD_PLATFORM_VERSION) node: $(NODE_OUTPUT_PATH)/config.gypi node_modules $(GYP_DEPENDENCIES) - $(NODE_PRE_GYP) configure --clang -- -I$< \ + $(NODE_PRE_GYP) configure --clang $(NODE_DEBUG) -- -I$< \ -Dcoverage= -Dlibuv_cflags= -Dlibuv_ldflags= -Dlibuv_static_libs= $(NODE_PRE_GYP) build --clang