Index: SConstruct |
=================================================================== |
--- SConstruct (revision 6384) |
+++ SConstruct (working copy) |
@@ -124,6 +124,9 @@ |
}, |
'debuggersupport:on': { |
'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], |
+ }, |
+ 'inspector:on': { |
+ 'CPPDEFINES': ['INSPECTOR'], |
} |
}, |
'gcc': { |
@@ -229,6 +232,9 @@ |
}, |
'prof:oprofile': { |
'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] |
+ }, |
+ 'gdbjit:on': { |
+ 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] |
} |
}, |
'msvc': { |
@@ -706,6 +712,11 @@ |
'default': 'off', |
'help': 'enable profiling of build target' |
}, |
+ 'gdbjit': { |
+ 'values': ['on', 'off'], |
+ 'default': 'off', |
+ 'help': 'enable GDB JIT interface' |
+ }, |
'library': { |
'values': ['static', 'shared'], |
'default': 'static', |
@@ -736,6 +747,11 @@ |
'default': 'on', |
'help': 'enable debugging of JavaScript code' |
}, |
+ 'inspector': { |
+ 'values': ['on', 'off'], |
+ 'default': 'off', |
+ 'help': 'enable inspector features' |
+ }, |
'soname': { |
'values': ['on', 'off'], |
'default': 'off', |
@@ -872,6 +888,8 @@ |
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['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' and env['arch'] != 'x64')): |
+ Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64) Linux target.") |
if env['prof'] == 'oprofile' and env['os'] != 'linux': |
Abort("OProfile is only supported on Linux.") |
if env['os'] == 'win32' and env['soname'] == 'on': |