1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

Lagom: Look for clang the same way serenity.sh does in BuildFuzzers.sh

Also note that Xcode does not ship libfuzzer and is not usable for
a fuzzer build.
This commit is contained in:
Andrew Kaster 2023-02-25 20:28:58 -07:00 committed by Sam Atkins
parent 5bc1f135b7
commit ce500ed170

View file

@ -14,11 +14,12 @@ die() {
pick_clang() {
local BEST_VERSION=0
for CLANG_CANDIDATE in clang clang-13 clang-14 /usr/local/bin/clang-13 /usr/local/bin/clang-14; do
for CLANG_CANDIDATE in clang clang-13 clang-14 clang-15 /opt/homebrew/opt/llvm/bin/clang ; do
if ! command -v $CLANG_CANDIDATE >/dev/null 2>&1; then
continue
fi
if $CLANG_CANDIDATE --version 2>&1 | grep "Apple clang" >/dev/null; then
echo "Skipping Apple clang, as Apple does not ship libfuzzer with Xcode..."
continue
fi
if ! $CLANG_CANDIDATE -dumpversion >/dev/null 2>&1; then