Skip to content

Commit a1301f4

Browse files
libidn2: add replay script (#13481)
libidn2: Compile times: Vanilla=170; Replay=3; Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 11176de commit a1301f4

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

projects/libidn2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ RUN apt-get update && apt-get install -y make autoconf automake gettext libtool
2020
RUN git clone --recursive https://gitlab.com/libidn/libidn2.git
2121

2222
WORKDIR libidn2
23-
COPY build.sh $SRC/
23+
COPY build.sh replay_build.sh $SRC/

projects/libidn2/replay_build.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash -eu
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
# This script is useful for OSS-Fuzz infrastructure which is used to rebuild
19+
# code from cached images. This is to support various ongoing efforts in
20+
# OSS-Fuzz.
21+
22+
cd $SRC/libidn2
23+
make -j$(nproc)
24+
25+
cd fuzz
26+
make oss-fuzz
27+
find . -name '*_fuzzer' -exec cp -v '{}' $OUT ';'

0 commit comments

Comments
 (0)