Skip to content

Commit 0b4315a

Browse files
author
Dane Springmeyer
committed
Merge branch 'master' of github.com:mapnik/node-mapnik
2 parents 6139f0c + 3ec3ad1 commit 0b4315a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ MODULE_NAME := $(shell node -e "console.log(require('./package.json').binary.mod
22

33
default: release
44

5+
ifneq (,$(findstring clang,$(CXX)))
6+
PROFILING_FLAG += -gline-tables-only
7+
else
8+
PROFILING_FLAG += -g
9+
endif
10+
511
deps/geometry/include/mapbox/geometry.hpp:
612
git submodule update --init
713

@@ -17,7 +23,7 @@ pre_build_check:
1723
mapnik-config -v
1824

1925
release_base: pre_build_check deps/geometry/include/mapbox/geometry.hpp node_modules
20-
V=1 ./node_modules/.bin/node-pre-gyp configure build --loglevel=error --clang
26+
V=1 CXXFLAGS="-fno-omit-frame-pointer $(PROFILING_FLAG)" ./node_modules/.bin/node-pre-gyp configure build --loglevel=error --clang
2127
@echo "run 'make clean' for full rebuild"
2228

2329
debug_base: pre_build_check deps/geometry/include/mapbox/geometry.hpp node_modules

0 commit comments

Comments
 (0)