summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 02e6296b56..af46f13225 100755
--- a/configure
+++ b/configure
@@ -59,6 +59,11 @@ parser.add_option('--prefix',
default='/usr/local',
help='select the install prefix [default: %default]')
+parser.add_option('--coverage',
+ action='store_true',
+ dest='coverage',
+ help='Build node with code coverage enabled')
+
parser.add_option('--debug',
action='store_true',
dest='debug',
@@ -857,6 +862,11 @@ def configure_node(o):
if options.use_xcode and options.use_ninja:
raise Exception('--xcode and --ninja cannot be used together.')
+ if options.coverage:
+ o['variables']['coverage'] = 'true'
+ else:
+ o['variables']['coverage'] = 'false'
+
def configure_library(lib, output):
shared_lib = 'shared_' + lib
output['variables']['node_' + shared_lib] = b(getattr(options, shared_lib))