diff options
author | Wayne Andrews <andreww@uk.ibm.com> | 2016-10-14 13:33:25 +0100 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2016-11-08 09:33:40 -0500 |
commit | 5d9d41597251f79a0c64a3c16957f638705f3db6 (patch) | |
tree | 47591f9844400d787b2fc1fb89d649c12acbd7f1 /configure | |
parent | a41b41a5409e41907982504dc0d6fd0c8c7968f9 (diff) | |
download | android-node-v8-5d9d41597251f79a0c64a3c16957f638705f3db6.tar.gz android-node-v8-5d9d41597251f79a0c64a3c16957f638705f3db6.tar.bz2 android-node-v8-5d9d41597251f79a0c64a3c16957f638705f3db6.zip |
build: Add option to compile for coverage reports
Add --coverage option to configure to support
compiling for generation of C based coverage reports
PR-URL: https://github.com/nodejs/node/pull/9463
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)) |