Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index 06751cc364a998aadd0893d4726020cb4e2b3b65..56baa9b3ae4b3a7bb2d156e2f5f502d8891a9e4b 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -274,6 +274,17 @@ |
'inputs': [ |
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
], |
+ 'variables': { |
+ 'mksnapshot_flags': [ |
+ '--log-snapshot-positions', |
+ '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
+ ], |
+ 'conditions': [ |
+ ['v8_random_seed!=0', { |
+ 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
+ }], |
+ ], |
+ }, |
'conditions': [ |
['want_separate_host_toolset==1', { |
'target_conditions': [ |
@@ -282,11 +293,23 @@ |
'<(INTERMEDIATE_DIR)/snapshot.cc', |
'<(PRODUCT_DIR)/snapshot_blob_host.bin', |
], |
+ 'action': [ |
+ '<@(_inputs)', |
+ '<@(mksnapshot_flags)', |
+ '<@(INTERMEDIATE_DIR)/snapshot.cc', |
+ '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin', |
+ ], |
}, { |
'outputs': [ |
'<(INTERMEDIATE_DIR)/snapshot.cc', |
'<(PRODUCT_DIR)/snapshot_blob.bin', |
], |
+ 'action': [ |
+ '<@(_inputs)', |
+ '<@(mksnapshot_flags)', |
+ '<@(INTERMEDIATE_DIR)/snapshot.cc', |
+ '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
+ ], |
}], |
], |
}, { |
@@ -294,25 +317,14 @@ |
'<(INTERMEDIATE_DIR)/snapshot.cc', |
'<(PRODUCT_DIR)/snapshot_blob.bin', |
], |
+ 'action': [ |
+ '<@(_inputs)', |
+ '<@(mksnapshot_flags)', |
+ '<@(INTERMEDIATE_DIR)/snapshot.cc', |
+ '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
+ ], |
}], |
], |
- 'variables': { |
- 'mksnapshot_flags': [ |
- '--log-snapshot-positions', |
- '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
- ], |
- 'conditions': [ |
- ['v8_random_seed!=0', { |
- 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
- }], |
- ], |
- }, |
- 'action': [ |
- '<@(_inputs)', |
- '<@(mksnapshot_flags)', |
- '<@(INTERMEDIATE_DIR)/snapshot.cc', |
- '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
- ], |
}, |
], |
}], |