diff options
author | davkor <david@adalogics.com> | 2020-08-13 19:12:44 +0300 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2020-08-20 17:05:18 +0300 |
commit | bdf26aebb429dc87d24ac1a7a2596862d0f5dacd (patch) | |
tree | 8523a012e1ce5dc30a150cf48c5fdba158212a48 /configure.py | |
parent | 952f233e392d651240a6614fdb0269eb3cbac9d6 (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 eaa262be30d..ff09f27f4d1 100755 --- a/configure.py +++ b/configure.py @@ -392,6 +392,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', @@ -1770,6 +1775,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'] |