Skip to content

Commit

Permalink
oss_fuzz_checkout: support local ccache builds (#694)
Browse files Browse the repository at this point in the history
This works but once we support the replayable scripts we need further
adjustments.

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Nov 6, 2024
1 parent 004b660 commit 037081c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions experiment/oss_fuzz_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def rewrite_project_to_cached_project(project_name: str, generated_project: str,

docker_content = docker_content.replace(
'FROM gcr.io/oss-fuzz-base/base-builder', f'FROM {cached_image_name}')
docker_content += '\n' + 'COPY adjusted_build.sh $SRC/build.sh\n'

# Now comment out everything except the first FROM and the last two Dockers
from_line = -1
Expand All @@ -349,10 +348,6 @@ def rewrite_project_to_cached_project(project_name: str, generated_project: str,
with open(cached_dockerfile, 'w') as f:
f.write(new_content)

# Copy over adjusted build script
shutil.copy(os.path.join('fuzzer_build_script', project_name),
os.path.join(generated_project_folder, 'adjusted_build.sh'))


def prepare_build(project_name, sanitizer, generated_project):
"""Prepares the correct Dockerfile to be used for cached builds."""
Expand Down

0 comments on commit 037081c

Please sign in to comment.