mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +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:
parent
5bc1f135b7
commit
ce500ed170
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/ce500ed170 Pull-request: https://github.com/SerenityOS/serenity/pull/17631
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue