1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show ASAN_OPTIONS in hacking guide.

This commit is contained in:
Samuel Williams 2022-05-27 00:39:05 +12:00
parent 46cf3bf333
commit bd472ef36f
Notes: git 2022-05-26 22:04:48 +09:00

View file

@ -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
```