Commit 2064c3c9 authored by Jakob Kummerow's avatar Jakob Kummerow

Makefile: introduce debugsymbols=on flag

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1085283002

Cr-Commit-Position: refs/heads/master@{#27852}
parent e0be0503
...@@ -97,6 +97,10 @@ endif ...@@ -97,6 +97,10 @@ endif
ifeq ($(slowdchecks), off) ifeq ($(slowdchecks), off)
GYPFLAGS += -Dv8_enable_slow_dchecks=0 GYPFLAGS += -Dv8_enable_slow_dchecks=0
endif endif
# debugsymbols=on
ifeq ($(debugsymbols), on)
GYPFLAGS += -Drelease_extra_cflags=-ggdb3
endif
# gdbjit=on/off # gdbjit=on/off
ifeq ($(gdbjit), on) ifeq ($(gdbjit), on)
GYPFLAGS += -Dv8_enable_gdbjit=1 GYPFLAGS += -Dv8_enable_gdbjit=1
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
'v8_deprecation_warnings': 1, 'v8_deprecation_warnings': 1,
'msvs_multi_core_compile%': '1', 'msvs_multi_core_compile%': '1',
'mac_deployment_target%': '10.5', 'mac_deployment_target%': '10.5',
'release_extra_cflags%': '',
'variables': { 'variables': {
'variables': { 'variables': {
'variables': { 'variables': {
...@@ -196,7 +197,7 @@ ...@@ -196,7 +197,7 @@
# Xcode insists on this empty entry. # Xcode insists on this empty entry.
}, },
'Release': { 'Release': {
# Xcode insists on this empty entry. 'cflags+': ['<@(release_extra_cflags)'],
}, },
}, },
'conditions':[ 'conditions':[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment