Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 16 insertions, 2 deletions
diff --git a/configure b/configure
index 7b41cdc591a..1a942517be8 100755
--- a/configure
+++ b/configure
@@ -108,7 +108,12 @@ parser.add_option("--shared-zlib-libname",
parser.add_option("--with-dtrace",
action="store_true",
dest="with_dtrace",
- help="Build with DTrace (experimental)")
+ help="Build with DTrace (default is true on supported systems)")
+
+parser.add_option("--without-dtrace",
+ action="store_true",
+ dest="without_dtrace",
+ help="Build without DTrace")
# CHECKME does this still work with recent releases of V8?
parser.add_option("--gdb",
@@ -225,7 +230,6 @@ def gcc_version():
def configure_node(o):
# TODO add gdb
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
- o['variables']['node_use_dtrace'] = b(options.with_dtrace)
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_waf'] = b(not options.without_waf)
o['variables']['host_arch'] = host_arch()
@@ -242,6 +246,16 @@ def configure_node(o):
if 'clang' not in CC and gcc_version() < [False, 4, 0, 0]:
o['variables']['visibility'] = ''
+ # By default, enable DTrace on SunOS systems. Don't allow it on other
+ # systems, since it won't work. (The MacOS build process is different than
+ # SunOS, and we haven't implemented it.)
+ if sys.platform.startswith('sunos'):
+ o['variables']['node_use_dtrace'] = b(not options.without_dtrace);
+ elif b(options.with_dtrace) == 'true':
+ raise Exception('DTrace is currently only supported on SunOS systems.')
+ else:
+ o['variables']['node_use_dtrace'] = 'false'
+
def configure_libz(o):
o['variables']['node_shared_zlib'] = b(options.shared_zlib)