summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2022-05-27 00:39:05 +1200
committerSamuel Williams <[email protected]>2022-05-27 01:04:28 +1200
commitbd472ef36f22de176a886cbe789480e84990b82b (patch)
tree3aad66c97d93ee99c1d98bd1e9045701322a3b40
parent46cf3bf33345c0dadb4ac8d79fe9e388cb9602a2 (diff)
Show ASAN_OPTIONS in hacking guide.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5950
-rw-r--r--doc/hacking.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/hacking.md b/doc/hacking.md
index fcaead8965..c326e13532 100644
--- a/doc/hacking.md
+++ b/doc/hacking.md
@@ -103,6 +103,7 @@ Using the address sanitizer is a great way to detect memory issues.
``` shell
> ./autogen.sh
> mkdir build && cd build
+> export ASAN_OPTIONS="halt_on_error=0:use_sigaltstack=0:detect_leaks=0"
> ../configure cppflags="-fsanitize=address -fno-omit-frame-pointer" optflags=-O0 LDFLAGS="-fsanitize=address -fno-omit-frame-pointer"
> make
```