Index: SConstruct |
diff --git a/SConstruct b/SConstruct |
index f6d1385a62eaa2d8b506190600a7af3352c72823..6b6c0b39b7644d030e6739fa91e2d8b89061f083 100644 |
--- a/SConstruct |
+++ b/SConstruct |
@@ -229,6 +229,9 @@ LIBRARY_FLAGS = { |
}, |
'prof:oprofile': { |
'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] |
+ }, |
+ 'gdbjit:on': { |
+ 'CPPDEFINES': ['ENABLE_GDBJIT_INTERFACE'] |
} |
}, |
'msvc': { |
@@ -704,6 +707,11 @@ SIMPLE_OPTIONS = { |
'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', |
@@ -870,6 +878,8 @@ def VerifyOptions(env): |
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 32-bit Linux target.") |
Erik Corry
2011/01/05 09:00:15
32-bit should perhaps be Intel-compatible?
Vyacheslav Egorov (Chromium)
2011/01/18 16:10:42
Done.
|
if env['prof'] == 'oprofile' and env['os'] != 'linux': |
Abort("OProfile is only supported on Linux.") |
if env['os'] == 'win32' and env['soname'] == 'on': |