diff options
author | davkor <david@adalogics.com> | 2020-08-13 19:12:44 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-08-16 00:59:07 +0300 |
commit | 375b859428e1c525f0cc9d3c4324f51740316722 (patch) | |
tree | 6f193b56793b3ed58522ecee321d732a69b3c54b /configure.py | |
parent | 5d179cb2eccac38205b6f03ecf6403df65deea51 (diff) |
build: add build flag for OSS-Fuzz integration
Refs: https://github.com/google/oss-fuzz/pull/3860
Fixes: https://github.com/nodejs/node/issues/33724
PR-URL: https://github.com/nodejs/node/pull/34761
Fixes: https://github.com/nodejs/node/issues/33724
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.py b/configure.py index fc702ce06fb..5134892cb52 100755 --- a/configure.py +++ b/configure.py @@ -439,6 +439,11 @@ parser.add_option('--v8-options', dest='v8_options', help='v8 options to pass, see `node --v8-options` for examples.') +parser.add_option('--with-ossfuzz', + action='store_true', + dest='ossfuzz', + help='Enables building of fuzzers. This command should be run in an OSS-Fuzz Docker image.') + parser.add_option('--with-arm-float-abi', action='store', dest='arm_float_abi', @@ -1827,6 +1832,9 @@ configure_intl(output) configure_static(output) configure_inspector(output) +# Forward OSS-Fuzz settings +output['variables']['ossfuzz'] = b(options.ossfuzz) + # variables should be a root level element, # move everything else to target_defaults variables = output['variables'] |