our own PCGUARD mode not for llvm 10.0.1

This commit is contained in:
vanhauser-thc
2022-03-18 12:57:51 +01:00
parent bdfac291ba
commit 69c9a176eb
2 changed files with 2 additions and 1 deletions

View File

@ -626,7 +626,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
if (instrument_mode == INSTRUMENT_PCGUARD) {
#if LLVM_MAJOR >= 11 || (LLVM_MAJOR == 10 && LLVM_MINOR >= 1)
#if LLVM_MAJOR >= 11
#if defined __ANDROID__ || ANDROID
cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
instrument_mode = INSTRUMENT_LLVMNATIVE;