| Index: SConstruct
|
| ===================================================================
|
| --- SConstruct (revision 8778)
|
| +++ SConstruct (working copy)
|
| @@ -60,26 +60,17 @@
|
| 'mode:debug': {
|
| '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'],
|
| - },
|
| - 'profilingsupport:on': {
|
| - 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING'],
|
| - },
|
| 'debuggersupport:on': {
|
| 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
|
| },
|
| 'inspector:on': {
|
| 'CPPDEFINES': ['INSPECTOR'],
|
| },
|
| - 'fasttls:on': {
|
| - 'CPPDEFINES': ['V8_FAST_TLS'],
|
| + 'fasttls:off': {
|
| + 'CPPDEFINES': ['V8_NO_FAST_TLS'],
|
| },
|
| 'liveobjectlist:on': {
|
| 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR',
|
| @@ -413,6 +404,7 @@
|
| },
|
| 'os:linux': {
|
| 'LIBS': ['pthread'],
|
| + 'CCFLAGS': ['-Wno-unused-but-set-variable'],
|
| },
|
| 'os:macos': {
|
| 'LIBS': ['pthread'],
|
| @@ -782,6 +774,13 @@
|
|
|
|
|
| D8_FLAGS = {
|
| + 'all': {
|
| + 'library:shared': {
|
| + 'CPPDEFINES': ['V8_SHARED'],
|
| + 'LIBS': ['v8'],
|
| + 'LIBPATH': ['.']
|
| + },
|
| + },
|
| 'gcc': {
|
| 'all': {
|
| 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
|
| @@ -929,21 +928,11 @@
|
| 'default': 'static',
|
| 'help': 'the type of library to produce'
|
| },
|
| - 'vmstate': {
|
| - 'values': ['on', 'off'],
|
| - 'default': 'off',
|
| - 'help': 'enable VM state tracking'
|
| - },
|
| 'objectprint': {
|
| 'values': ['on', 'off'],
|
| 'default': 'off',
|
| 'help': 'enable object printing'
|
| },
|
| - 'protectheap': {
|
| - 'values': ['on', 'off'],
|
| - 'default': 'off',
|
| - 'help': 'enable heap protection'
|
| - },
|
| 'profilingsupport': {
|
| 'values': ['on', 'off'],
|
| 'default': 'on',
|
| @@ -1389,7 +1378,11 @@
|
| d8_env = Environment(tools=tools)
|
| d8_env.Replace(**context.flags['d8'])
|
| context.ApplyEnvOverrides(d8_env)
|
| - shell = d8_env.Program('d8' + suffix, object_files + shell_files)
|
| + if context.options['library'] == 'static':
|
| + shell = d8_env.Program('d8' + suffix, object_files + shell_files)
|
| + else:
|
| + shell = d8_env.Program('d8' + suffix, shell_files)
|
| + d8_env.Depends(shell, library)
|
| context.d8_targets.append(shell)
|
|
|
| for sample in context.samples:
|
|
|