Update V8 to r7427: Fix ENABLE_LOGGING_AND_PROFILING guards
Partial cherry-pick of
http://code.google.com/p/v8/source/detail?r=8113 pulled into trunk in
http://code.google.com/p/v8/source/detail?r=8130
We can't cherry-pick the entire change because it touches code we
don't yet have. The change to top.cc is taken from the patch for
isolate.cc, to where this code has now moved.
Change-Id: I06a98ff82221a5a9bf64253f7dc5730a2ba603a6
diff --git a/src/SConscript b/src/SConscript
index 3b9968e..a740584 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -329,7 +329,10 @@
env.Replace(**context.flags['v8'])
context.ApplyEnvOverrides(env)
env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
- env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGFILE" --log-snapshot-positions')
+ if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']:
+ env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGFILE" --log-snapshot-positions')
+ else:
+ env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET')
# Build the standard platform-independent source files.
source_files = context.GetRelevantSources(SOURCES)