| Index: SConstruct
|
| ===================================================================
|
| --- SConstruct (revision 7006)
|
| +++ SConstruct (working copy)
|
| @@ -234,9 +234,6 @@
|
| 'CCFLAGS': ['-m64'],
|
| 'LINKFLAGS': ['-m64'],
|
| },
|
| - 'prof:oprofile': {
|
| - 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT']
|
| - },
|
| 'gdbjit:on': {
|
| 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE']
|
| }
|
| @@ -539,10 +536,6 @@
|
| 'CCFLAGS': ['-g', '-O0'],
|
| 'CPPDEFINES': ['DEBUG']
|
| },
|
| - 'prof:oprofile': {
|
| - 'LIBPATH': ['/usr/lib32', '/usr/lib32/oprofile'],
|
| - 'LIBS': ['opagent']
|
| - }
|
| },
|
| 'msvc': {
|
| 'all': {
|
| @@ -670,8 +663,8 @@
|
|
|
|
|
| def GuessVisibility(os, toolchain):
|
| - if os == 'win32' and toolchain == 'gcc':
|
| - # MinGW can't do it.
|
| + if (os == 'win32' or os == 'cygwin') and toolchain == 'gcc':
|
| + # MinGW / Cygwin can't do it.
|
| return 'default'
|
| elif os == 'solaris':
|
| return 'default'
|
| @@ -692,7 +685,7 @@
|
| 'help': 'the toolchain to use (%s)' % TOOLCHAIN_GUESS
|
| },
|
| 'os': {
|
| - 'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd', 'solaris'],
|
| + 'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd', 'solaris', 'cygwin'],
|
| 'default': OS_GUESS,
|
| 'help': 'the os to build for (%s)' % OS_GUESS
|
| },
|
| @@ -712,7 +705,7 @@
|
| 'help': 'build using snapshots for faster start-up'
|
| },
|
| 'prof': {
|
| - 'values': ['on', 'off', 'oprofile'],
|
| + 'values': ['on', 'off'],
|
| 'default': 'off',
|
| 'help': 'enable profiling of build target'
|
| },
|
| @@ -897,10 +890,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')):
|
| + if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' and env['arch'] != 'x64' and env['arch'] != 'arm')):
|
| 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':
|
| Abort("Shared Object soname not applicable for Windows.")
|
| if env['soname'] == 'on' and env['library'] == 'static':
|
|
|