Index: src/SConscript |
diff --git a/src/SConscript b/src/SConscript |
index fe21d02f8a35efcd17350e13aa0dc6c25217cc58..68a7d560c8b06052add711018e68e10b4bf53344 100755 |
--- a/src/SConscript |
+++ b/src/SConscript |
@@ -311,7 +311,10 @@ def ConfigureObjectFiles(): |
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) |