hfuzz-cc: start with the standard clang/clang++ first, only then try clang-<number>
@@ -136,22 +136,28 @@ static int execCC(int argc, char** argv) {
}
} else {
if (isCXX) {
- /* Try newest ones (hopefully) first */
+ /* Try the default one, then newest ones (hopefully) first */
+ execvp("clang++", argv);
execvp("clang++-devel", argv);
+ execvp("clang++-10.0", argv);
+ execvp("clang++-9.0", argv);
+ execvp("clang++-8.0", argv);
execvp("clang++-7.0", argv);
execvp("clang++-6.0", argv);
execvp("clang++-5.0", argv);
execvp("clang++-4.0", argv);
- execvp("clang++", argv);
execvp("clang", argv);
} else {
- /* Try newest ones (hopefully) first */
+ /* Try the default one, then newest ones (hopefully) first */
+ execvp("clang", argv);
execvp("clang-devel", argv);
+ execvp("clang-10.0", argv);
+ execvp("clang-9.0", argv);
+ execvp("clang-8.0", argv);
execvp("clang-7.0", argv);
execvp("clang-6.0", argv);
execvp("clang-5.0", argv);
execvp("clang-4.0", argv);
- execvp("clang", argv);
}
}
