@@ -96,6 +96,8 @@ def devhelp(helpstring):
96
96
help = devhelp ('build test version of the jerry command line tool (%(choices)s)' ))
97
97
compgrp .add_argument ('--libfuzzer' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
98
98
help = devhelp ('build jerry with libfuzzer support (%(choices)s)' ))
99
+ compgrp .add_argument ('--oss-fuzz' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
100
+ help = devhelp ('build jerry to run on OSS-fuzz (%(choices)s)' ))
99
101
compgrp .add_argument ('--jerry-ext' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
100
102
help = 'build jerry-ext (%(choices)s)' )
101
103
compgrp .add_argument ('--jerry-libm' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
@@ -188,6 +190,7 @@ def build_options_append(cmakeopt, cliarg):
188
190
build_options_append ('JERRY_CMDLINE_SNAPSHOT' , arguments .jerry_cmdline_snapshot )
189
191
build_options_append ('JERRY_CMDLINE_TEST' , arguments .jerry_cmdline_test )
190
192
build_options_append ('JERRY_LIBFUZZER' , arguments .libfuzzer )
193
+ build_options_append ('OSS_FUZZ' , arguments .oss_fuzz )
191
194
build_options_append ('JERRY_EXT' , arguments .jerry_ext )
192
195
build_options_append ('JERRY_LIBM' , arguments .jerry_libm )
193
196
build_options_append ('JERRY_PORT_DEFAULT' , arguments .jerry_port_default )
0 commit comments