Permalink
Browse files

Update the `legacy` dir.

Adds Solaris optimization workardound "fixes" and builds addons in the "build" dir.
  • Loading branch information...
1 parent 4e9b06b commit 76b845c84a68cbc131d260cfc1359da88fd41186 @TooTallNate TooTallNate committed Feb 27, 2012
Showing with 9 additions and 7 deletions.
  1. +7 −5 legacy/common.gypi
  2. +2 −2 legacy/tools/gyp_addon
View
@@ -36,12 +36,14 @@
'Release': {
'conditions': [
[ 'OS!="solaris"', {
- 'cflags': [ '-fomit-frame-pointer' ]
+ 'cflags': [ '-O3','-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ],
+ }],
+ [ 'OS=="solaris" and gcc_optimize_level =="-O3"', {
+ 'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
+ }],
+ [ 'OS=="solaris" and gcc_optimize_level =="-O"', {
+ 'cflags': [ '-O', '-fdata-sections', '-ffunction-sections' ], # For bug fix of #2830
}],
- ],
- # 'defines': [ 'NDEBUG' ],
- 'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
- 'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
}],
View
@@ -5,9 +5,9 @@ import sys
script_dir = os.path.dirname(__file__)
node_root = os.path.abspath(os.path.join(script_dir, os.pardir))
if sys.platform == 'win32':
- output_dir = os.path.join(os.getcwd(), 'out')
+ output_dir = os.path.join(os.getcwd(), 'build')
else:
- output_dir = 'out'
+ output_dir = 'build'
sys.path.insert(0, os.path.join(node_root, 'tools', 'gyp', 'pylib'))
import gyp

0 comments on commit 76b845c

Please sign in to comment.