Skip to content

Commit

Permalink
hfuzz-cc: use clang-15 if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Jun 25, 2022
1 parent 8b97307 commit 847492c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hfuzz_cc/hfuzz-cc.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ static int execCC(int argc, char** argv) {
if (isCXX) {
/* Try the default one, then the newest ones (hopefully) in order */
hf_execvp("clang++", argv);
hf_execvp("clang++-15.0", argv);
hf_execvp("clang++-15", argv);
hf_execvp("clang++-14.0", argv);
hf_execvp("clang++-14", argv);
hf_execvp("clang++-13.0", argv);
Expand All @@ -205,6 +207,8 @@ static int execCC(int argc, char** argv) {
} else {
/* Try the default one, then the newest ones (hopefully) in order */
hf_execvp("clang", argv);
hf_execvp("clang-15.0", argv);
hf_execvp("clang-15", argv);
hf_execvp("clang-14.0", argv);
hf_execvp("clang-14", argv);
hf_execvp("clang-13.0", argv);
Expand Down

0 comments on commit 847492c

Please sign in to comment.