File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -314,11 +314,14 @@ where
314
314
"sancov"
315
315
} ;
316
316
317
+ // `-C codegen-units=1` is needed to worked around link errors
318
+ // https://github.com/rust-fuzz/afl.rs/pull/193#issuecomment-933550430
317
319
let mut rustflags = format ! (
318
320
"--cfg fuzzing \
319
321
-C debug-assertions \
320
322
-C overflow_checks \
321
323
-C passes={} \
324
+ -C codegen-units=1 \
322
325
-C llvm-args=-sanitizer-coverage-level=3 \
323
326
-C llvm-args=-sanitizer-coverage-trace-pc-guard \
324
327
-C llvm-args=-sanitizer-coverage-prune-blocks=0 \
@@ -339,6 +342,7 @@ where
339
342
-C debug-assertions \
340
343
-C overflow_checks \
341
344
-C passes={} \
345
+ -C codegen-units=1 \
342
346
-C llvm-args=-sanitizer-coverage-level=3 \
343
347
-C llvm-args=-sanitizer-coverage-trace-pc-guard \
344
348
-C llvm-args=-sanitizer-coverage-prune-blocks=0 \
You can’t perform that action at this time.
0 commit comments