]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-make/sanitizer-memory/Makefile
Support AddressSanitizer and ThreadSanitizer on x86_64-apple-darwin.
[rust.git] / src / test / run-make / sanitizer-memory / Makefile
index 08682e5975e5163e80843f3b5a2c14f90e727092..7502ef0e7a7b750467ecde8e32e013b21d87557d 100644 (file)
@@ -1,10 +1,10 @@
 -include ../tools.mk
 
-ifdef SANITIZER_SUPPORT
 all:
+ifeq ($(TARGET),x86_64-unknown-linux-gnu)
+ifdef SANITIZER_SUPPORT
        $(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | grep -q librustc_msan
        $(TMPDIR)/uninit 2>&1 | grep -q use-of-uninitialized-value
-else
-all:
-
 endif
+endif
+