Skip to content

Commit

Permalink
askama: update build (#12084)
Browse files Browse the repository at this point in the history
This pr updates build logic to match upstream refactor.
  • Loading branch information
manunio authored Jun 18, 2024
1 parent deef8c5 commit 630513b
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions projects/askama/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,8 @@

set -eox pipefail

FUZZ_CRATE_DIRS=$(find . -type d -name fuzz -exec dirname $(readlink -f {}) \;)

for CRATE_DIR in ${FUZZ_CRATE_DIRS[@]};
do
echo "Building crate: $CRATE_DIR"
cd $CRATE_DIR
cargo +nightly-2023-12-28 fuzz build -O
FUZZ_TARGET_OUTPUT_DIR=fuzz/target/x86_64-unknown-linux-gnu/release
for f in fuzz/fuzz_targets/*.rs
do
FUZZ_TARGET_NAME=$(basename ${f%.*})
CRATE_NAME=$(basename $CRATE_DIR)
cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/$CRATE_NAME-$FUZZ_TARGET_NAME
done
target_out_dir=fuzz/target/x86_64-unknown-linux-gnu/release
cargo fuzz build -O
cargo fuzz list | while read i; do
cp $target_out_dir/$i $OUT/
done

0 comments on commit 630513b

Please sign in to comment.