]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/sanitizer-leak/Makefile
Support AddressSanitizer and ThreadSanitizer on x86_64-apple-darwin.
[rust.git] / src / test / run-make / sanitizer-leak / Makefile
1 -include ../tools.mk
2
3 all:
4 ifeq ($(TARGET),x86_64-unknown-linux-gnu)
5 ifdef SANITIZER_SUPPORT
6         $(RUSTC) -C opt-level=1 -g -Z sanitizer=leak -Z print-link-args leak.rs | grep -q librustc_lsan
7         $(TMPDIR)/leak 2>&1 | grep -q 'detected memory leaks'
8 endif
9 endif
10