auto mode for CTX + NGRAM

This commit is contained in:
vanhauser-thc 2021-02-22 18:17:35 +01:00
parent fb2a6b6941
commit 7674dac1a1

View File

@ -1421,6 +1421,14 @@ int main(int argc, char **argv, char **envp) {
}
if (instrument_opt_mode && instrument_mode == INSTRUMENT_DEFAULT &&
(compiler_mode == LLVM || compiler_mode == UNSET)) {
instrument_mode = INSTRUMENT_CLASSIC;
compiler_mode = LLVM;
}
if (!compiler_mode) {
// lto is not a default because outside of afl-cc RANLIB and AR have to