From b0fe1620dcb4135ac3ab2d66ff93072373911299 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Thu, 5 May 2011 13:52:32 +0100 Subject: Update V8 to r6101 as required by WebKit r74534 Change-Id: I7f84af8dd732f11898fd644b2c2b1538914cb78d --- SConstruct | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 820c1a1c..f6d1385a 100644 --- a/SConstruct +++ b/SConstruct @@ -108,11 +108,14 @@ LIBRARY_FLAGS = { 'CPPDEFINES': ['V8_INTERPRETED_REGEXP'] }, 'mode:debug': { - 'CPPDEFINES': ['V8_ENABLE_CHECKS'] + 'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT'] }, 'vmstate:on': { 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING'], }, + 'objectprint:on': { + 'CPPDEFINES': ['OBJECT_PRINT'], + }, 'protectheap:on': { 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_HEAP_PROTECTION'], }, @@ -523,7 +526,8 @@ SAMPLE_FLAGS = { 'CCFLAGS': ['-O2'] }, 'mode:debug': { - 'CCFLAGS': ['-g', '-O0'] + 'CCFLAGS': ['-g', '-O0'], + 'CPPDEFINES': ['DEBUG'] }, 'prof:oprofile': { 'LIBPATH': ['/usr/lib32', '/usr/lib32/oprofile'], @@ -578,13 +582,14 @@ SAMPLE_FLAGS = { 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2091752'] }, 'mode:debug': { - 'CCFLAGS': ['/Od'], - 'LINKFLAGS': ['/DEBUG'], + 'CCFLAGS': ['/Od'], + 'LINKFLAGS': ['/DEBUG'], + 'CPPDEFINES': ['DEBUG'], 'msvcrt:static': { - 'CCFLAGS': ['/MTd'] + 'CCFLAGS': ['/MTd'] }, 'msvcrt:shared': { - 'CCFLAGS': ['/MDd'] + 'CCFLAGS': ['/MDd'] } } } @@ -654,9 +659,18 @@ def GuessToolchain(os): return None +def GuessVisibility(os, toolchain): + if os == 'win32' and toolchain == 'gcc': + # MinGW can't do it. + return 'default' + else: + return 'hidden' + + OS_GUESS = utils.GuessOS() TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS) ARCH_GUESS = utils.GuessArchitecture() +VISIBILITY_GUESS = GuessVisibility(OS_GUESS, TOOLCHAIN_GUESS) SIMPLE_OPTIONS = { @@ -700,6 +714,11 @@ SIMPLE_OPTIONS = { 'default': 'off', 'help': 'enable VM state tracking' }, + 'objectprint': { + 'values': ['on', 'off'], + 'default': 'off', + 'help': 'enable object printing' + }, 'protectheap': { 'values': ['on', 'off'], 'default': 'off', @@ -762,8 +781,8 @@ SIMPLE_OPTIONS = { }, 'visibility': { 'values': ['default', 'hidden'], - 'default': 'hidden', - 'help': 'shared library symbol visibility' + 'default': VISIBILITY_GUESS, + 'help': 'shared library symbol visibility (%s)' % VISIBILITY_GUESS }, 'pgo': { 'values': ['off', 'instrument', 'optimize'], -- cgit v1.2.3