Skip to content

Commit f37f0b4

Browse files
committed
easier LTO CTX activation
1 parent e0b23dd commit f37f0b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/afl-cc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,8 @@ void instrument_mode_by_environ(aflcc_state_t *aflcc) {
11521152
static void instrument_opt_mode_exclude(aflcc_state_t *aflcc) {
11531153

11541154
if ((aflcc->instrument_opt_mode & INSTRUMENT_OPT_CTX) &&
1155-
(aflcc->instrument_opt_mode & INSTRUMENT_OPT_CALLER)) {
1155+
(aflcc->instrument_opt_mode & INSTRUMENT_OPT_CALLER) &&
1156+
aflcc->compiler_mode != LTO) {
11561157

11571158
FATAL("you cannot set CTX and CALLER together");
11581159

0 commit comments

Comments
 (0)