Skip to content

Commit 9108379

Browse files
committed
Update script for updating libfuzzer vendoring
The old compiler-rt repo is deprecated.
1 parent df2eb23 commit 9108379

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $ ./target/debug/fuzzed
6363
## Updating libfuzzer from upstream
6464

6565
```
66-
./update-libfuzzer.sh <llvm/compiler-rt SHA1>
66+
./update-libfuzzer.sh <github.com/llvm-mirror/llvm-project SHA1>
6767
```
6868

6969
## License

update-libfuzzer.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
#!/bin/bash -ex
22

3+
# Usage:
4+
#
5+
# ./update-libfuzzer $commit_hash
6+
#
7+
# Where `$commit_hash` is a commit hash from
8+
# https://github.com/llvm-mirror/llvm-project
9+
10+
set -ex
11+
12+
cd "$(dirname $0)"
313
project_dir="$(pwd)"
14+
415
tmp_dir="$(mktemp -d)"
516

6-
git clone https://github.com/llvm-mirror/compiler-rt.git "$tmp_dir"
17+
git clone https://github.com/llvm/llvm-project.git "$tmp_dir"
718
cd "$tmp_dir"
819
git checkout "$1"
920
rm -rf "$project_dir/libfuzzer/"
10-
mv "$tmp_dir/lib/fuzzer/" "$project_dir/libfuzzer/"
21+
mv "$tmp_dir/compiler-rt/lib/fuzzer/" "$project_dir/libfuzzer/"

0 commit comments

Comments
 (0)