Lines Matching +full:update +full:- +full:commit +full:- +full:hash
1 #!/bin/bash -ex
5 # $ ./update-libfuzzer.sh
7 set -ex
9 # The LLVM commit from which we are vendoring libfuzzer. This must be a commit
10 # hash from https://github.com/llvm/llvm-project
11 COMMIT=ab51eccf88f5321e7c60591c5546b254b6afab99
16 tmp_dir="$(mktemp -d)"
20 git remote add llvm https://github.com/llvm/llvm-project.git
21 git sparse-checkout set compiler-rt/lib/fuzzer
23 git fetch --depth 1 llvm "$COMMIT" --filter=blob:none
24 git checkout "$COMMIT"
26 rm -rf "$project_dir/libfuzzer/"
27 mv "$tmp_dir/compiler-rt/lib/fuzzer/" "$project_dir/libfuzzer/"