Skip to content

Commit a335fe0

Browse files
opus: improve build performance (#13493)
Before: ``` opus: Compile times: Vanilla=185; Replay=67; ``` After: ``` opus: Compile times: Vanilla=81; Replay=20; ``` --------- Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 8787305 commit a335fe0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/opus/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FUZZERS="opus_encode_fuzzer opus_multistream_decode_fuzzer opus_multistream_enco
2020
BUILDS=(floating fixed floating_qext fixed_qext)
2121

2222
tar xvf $SRC/opus_testvectors.tar.gz
23+
zip -r $SRC/zipped-corpus.zip opus_testvectors/
2324

2425
if [[ $CFLAGS = *sanitize=memory* ]]; then
2526
CFLAGS+=" -D_FORTIFY_SOURCE=0"
@@ -64,6 +65,8 @@ for build in "${BUILDS[@]}"; do
6465
# fuzzer's name
6566
[ -f tests/$fuzzer.options ] \
6667
&& cp tests/$fuzzer.options $OUT/${fuzzer}_${build}.options
67-
zip -r $OUT/${fuzzer}_${build}_seed_corpus.zip opus_testvectors/
68+
cp $SRC/zipped-corpus.zip $OUT/${fuzzer}_${build}_seed_corpus.zip &
6869
done
6970
done
71+
72+
wait

0 commit comments

Comments
 (0)