Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Pacheco <dap@joyent.com>2012-02-08 05:21:51 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-02-18 03:30:00 +0400
commit7864bb9eb8211a6b5dfdaa65456ba05b393a6161 (patch)
tree6148b5a2056532aecf8e89deebfc33d9cdcc5529 /common.gypi
parent977e211421fc0055fb46bde392207bef9703b0ce (diff)
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.gypi7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index 582af85369b..6640578c7e7 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',