Skip to content

Commit

Permalink
examples: remove -flegacy-pass-manager usage
Browse files Browse the repository at this point in the history
Otherwise you'll see:
`clang: error: unknown argument: '-flegacy-pass-manager'`
when running through localbuild.md. LLVM 18 has been used since #1440.
  • Loading branch information
fanquake committed Mar 5, 2024
1 parent 2188913 commit e0a6185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/simple-example-0/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ rm -rf ./work
mkdir work
cd work

#../../../build/llvm-build/bin/clang -flegacy-pass-manager -fsanitize=fuzzer -flegacy-pass-manager -flto -g ../fuzzer.c -o fuzzer
../../../build/llvm-build/bin/clang -fsanitize=fuzzer -flto -g ../fuzzer.c -o fuzzer
2 changes: 1 addition & 1 deletion tests/simple-example-0/build_cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -d "work" ]; then
cd work
fi

../../../build/llvm-build/bin/clang -flegacy-pass-manager -fprofile-instr-generate -fcoverage-mapping -fsanitize=fuzzer -g ../fuzzer.c -o fuzzer
../../../build/llvm-build/bin/clang -fprofile-instr-generate -fcoverage-mapping -fsanitize=fuzzer -g ../fuzzer.c -o fuzzer
./fuzzer -max_total_time=3
../../../build/llvm-build/bin/llvm-profdata merge -sparse default.profraw -o merged_cov.profdata
../../../build/llvm-build/bin/llvm-cov show -instr-profile=merged_cov.profdata -object=./fuzzer -line-coverage-gt=0 > fuzzer.covreport

0 comments on commit e0a6185

Please sign in to comment.