File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
infra/base-images/base-builder Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 80
80
81
81
# Rust does not support sanitizers and coverage flags via CFLAGS/CXXFLAGS, so
82
82
# use RUSTFLAGS.
83
- # FIXME: Support code coverage once support is in.
84
- # See https://github.com/rust-lang/rust/issues/34701.
85
- if [ " $SANITIZER " != " undefined" ] && [ " $SANITIZER " != " coverage" ] && [ " $ARCHITECTURE " != ' i386' ]; then
86
- export RUSTFLAGS=" --cfg fuzzing -Zsanitizer=${SANITIZER} -Cdebuginfo=1 -Cforce-frame-pointers"
87
- else
88
- export RUSTFLAGS=" --cfg fuzzing -Cdebuginfo=1 -Cforce-frame-pointers"
83
+ export RUSTFLAGS=" --cfg fuzzing -Cdebuginfo=1 -Cforce-frame-pointers"
84
+ if [ " $SANITIZER " = " coverage" ]; then
85
+ export RUSTFLAGS=" ${RUSTFLAGS} -Zinstrument-coverage"
86
+ elif [ " $SANITIZER " != " undefined" ] && [ " $ARCHITECTURE " != ' i386' ]; then
87
+ export RUSTFLAGS=" ${RUSTFLAGS} -Zsanitizer=${SANITIZER} "
89
88
fi
90
89
91
90
# Add Rust libfuzzer flags.
You can’t perform that action at this time.
0 commit comments