gyp: enable postmortem support, fix dtrace paths
authorFedor Indutny <fedor@indutny.com>
Tue, 3 Feb 2015 13:59:35 +0000 (16:59 +0300)
committerFedor Indutny <fedor@indutny.com>
Tue, 3 Feb 2015 16:25:27 +0000 (19:25 +0300)
Fix: iojs/io.js#461
PR-URL: https://github.com/iojs/io.js/pull/706
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
common.gypi
node.gyp

index e323fc3..ea7779e 100644 (file)
     # Don't bake anything extra into the snapshot.
     'v8_use_external_startup_data%': 0,
 
-    # Disable V8's post-mortem debugging; frequently broken and hardly used.
-    'v8_postmortem_support%': 'false',
-
     'conditions': [
       ['OS == "win"', {
         'os_posix': 0,
+        'v8_postmortem_support%': 'false',
       }, {
         'os_posix': 1,
+        'v8_postmortem_support%': 'true',
       }],
       ['GENERATOR == "ninja" or OS== "mac"', {
         'OBJ_DIR': '<(PRODUCT_DIR)/obj',
index d58ec25..2874f13 100644 (file)
--- a/node.gyp
+++ b/node.gyp
             {
               'action_name': 'node_dtrace_provider_o',
               'inputs': [
-                '<(OBJ_DIR)/node/src/node_dtrace.o',
+                '<(OBJ_DIR)/iojs/src/node_dtrace.o',
               ],
               'outputs': [
-                '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
+                '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
               ],
               'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
                 '<@(_inputs)', '-o', '<@(_outputs)' ]
                 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
               ],
               'outputs': [
-                '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
+                '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
               ],
               'conditions': [
                 [ 'target_arch=="ia32"', {