| Index: SConstruct
|
| diff --git a/SConstruct b/SConstruct
|
| index 0baf71b5d32e61e44b6714c91b951b4caecf4b02..202f4b5b751105cf56287c79362e89a5af689c55 100644
|
| --- a/SConstruct
|
| +++ b/SConstruct
|
| @@ -95,7 +95,12 @@ ANDROID_LINKFLAGS = ['-nostdlib',
|
| LIBRARY_FLAGS = {
|
| 'all': {
|
| 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'],
|
| - 'CPPPATH': [join(root_dir, 'src')]
|
| + 'CPPPATH': [join(root_dir, 'src')],
|
| + 'regexp:native': {
|
| + 'arch:ia32' : {
|
| + 'CPPDEFINES': ['V8_NATIVE_REGEXP']
|
| + }
|
| + }
|
| },
|
| 'gcc': {
|
| 'all': {
|
| @@ -546,6 +551,11 @@ SIMPLE_OPTIONS = {
|
| 'default': ARCH_GUESS,
|
| 'help': 'the architecture to build for (' + ARCH_GUESS + ')'
|
| },
|
| + 'regexp': {
|
| + 'values': ['native', 'interpreted'],
|
| + 'default': 'native',
|
| + 'help': 'Whether to use native or interpreted regexp implementation'
|
| + },
|
| 'snapshot': {
|
| 'values': ['on', 'off', 'nobuild'],
|
| 'default': 'off',
|
| @@ -677,6 +687,8 @@ def VerifyOptions(env):
|
| return False
|
| if not IsLegal(env, 'sample', ["shell", "process"]):
|
| return False
|
| + if not IsLegal(env, 'regexp', ["native", "interpreted"]):
|
| + return False
|
| if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on':
|
| Abort("Profiling on windows only supported for static library.")
|
| if env['prof'] == 'oprofile' and env['os'] != 'linux':
|
|
|