diff options
author | Dave Pacheco <dap@joyent.com> | 2012-02-07 17:21:51 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-18 00:30:00 +0100 |
commit | 7864bb9eb8211a6b5dfdaa65456ba05b393a6161 (patch) | |
tree | 6148b5a2056532aecf8e89deebfc33d9cdcc5529 /common.gypi | |
parent | 977e211421fc0055fb46bde392207bef9703b0ce (diff) | |
download | node-new-7864bb9eb8211a6b5dfdaa65456ba05b393a6161.tar.gz |
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.
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi index 582af85369..6640578c7e 100644 --- a/common.gypi +++ b/common.gypi @@ -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', |