Use hardcoded FUZZING_LANGUAGE to unbreak CIFuzz. (#3844)

This commit is contained in:
Abhishek Arya 2020-05-18 08:23:28 -07:00 committed by GitHub
parent c066a4232f
commit 8d5aef84db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 6 deletions

View File

@ -136,9 +136,16 @@ def build_fuzzers(project_name,
# Build Fuzzers using docker run.
command = [
'--cap-add', 'SYS_PTRACE', '-e', 'FUZZING_ENGINE=' + DEFAULT_ENGINE, '-e',
'SANITIZER=' + DEFAULT_SANITIZER, '-e',
'ARCHITECTURE=' + DEFAULT_ARCHITECTURE
'--cap-add',
'SYS_PTRACE',
'-e',
'FUZZING_ENGINE=' + DEFAULT_ENGINE,
'-e',
'SANITIZER=' + DEFAULT_SANITIZER,
'-e',
'ARCHITECTURE=' + DEFAULT_ARCHITECTURE,
'-e',
'FUZZING_LANGUAGE=c++', # FIXME: Add proper support.
]
container = utils.get_container_name()
if container:
@ -244,9 +251,14 @@ def check_fuzzer_build(out_dir):
return False
command = [
'--cap-add', 'SYS_PTRACE', '-e', 'FUZZING_ENGINE=' + DEFAULT_ENGINE, '-e',
'SANITIZER=' + DEFAULT_SANITIZER, '-e',
'ARCHITECTURE=' + DEFAULT_ARCHITECTURE
'--cap-add',
'SYS_PTRACE',
'-e',
'FUZZING_ENGINE=' + DEFAULT_ENGINE,
'-e',
'SANITIZER=' + DEFAULT_SANITIZER,
'-e',
'ARCHITECTURE=' + DEFAULT_ARCHITECTURE,
]
# Set ALLOWED_BROKEN_TARGETS_PERCENTAGE in docker if specified by user.