Skip to content

Commit 7ee606f

Browse files
committed
Update sanitizer supported docs to reflect reality
1 parent 5ab1602 commit 7ee606f

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

src/doc/unstable-book/src/compiler-flags/sanitizer.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ with runtime flag `ASAN_OPTIONS=detect_leaks=1` on macOS.
3131

3232
AddressSanitizer is supported on the following targets:
3333

34+
* `aarch64-apple-darwin`
35+
* `aarch64-fuchsia`
36+
* `aarch64-unknown-linux-gnu`
3437
* `x86_64-apple-darwin`
38+
* `x86_64-fuchsia`
39+
* `x86_64-unknown-freebsd`
3540
* `x86_64-unknown-linux-gnu`
3641

3742
AddressSanitizer works with non-instrumented code although it will impede its
@@ -169,10 +174,26 @@ Shadow byte legend (one shadow byte represents 8 application bytes):
169174
==39249==ABORTING
170175
```
171176
177+
# LeakSanitizer
178+
179+
LeakSanitizer is run-time memory leak detector.
180+
181+
LeakSanitizer is supported on the following targets:
182+
183+
* `aarch64-apple-darwin`
184+
* `aarch64-unknown-linux-gnu`
185+
* `x86_64-apple-darwin`
186+
* `x86_64-unknown-linux-gnu`
187+
172188
# MemorySanitizer
173189
174-
MemorySanitizer is detector of uninitialized reads. It is only supported on the
175-
`x86_64-unknown-linux-gnu` target.
190+
MemorySanitizer is detector of uninitialized reads.
191+
192+
MemorySanitizer is supported on the following targets:
193+
194+
* `aarch64-unknown-linux-gnu`
195+
* `x86_64-unknown-freebsd`
196+
* `x86_64-unknown-linux-gnu`
176197
177198
MemorySanitizer requires all program code to be instrumented. C/C++ dependencies
178199
need to be recompiled using Clang with `-fsanitize=memory` option. Failing to
@@ -219,7 +240,10 @@ $ cargo run -Zbuild-std --target x86_64-unknown-linux-gnu
219240
ThreadSanitizer is a data race detection tool. It is supported on the following
220241
targets:
221242
243+
* `aarch64-apple-darwin`
244+
* `aarch64-unknown-linux-gnu`
222245
* `x86_64-apple-darwin`
246+
* `x86_64-unknown-freebsd`
223247
* `x86_64-unknown-linux-gnu`
224248
225249
To work correctly ThreadSanitizer needs to be "aware" of all synchronization

0 commit comments

Comments
 (0)