0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00

build: disable -fomit-frame-pointer on solaris

This "optimization" cripples debuggability and has dubious performance value,
so we want to disable it at least on SmartOS.
This commit is contained in:
Dave Pacheco 2012-02-07 17:21:51 -08:00 committed by Ben Noordhuis
parent 977e211421
commit 7864bb9eb8

View File

@ -34,8 +34,13 @@
},
},
'Release': {
'conditions': [
[ 'OS!="solaris"', {
'cflags': [ '-fomit-frame-pointer' ]
}],
],
# 'defines': [ 'NDEBUG' ],
'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ],
'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',