about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2017-02-08 22:58:53 -0500
committerJorge Aparicio <japaricious@gmail.com>2017-02-08 22:58:53 -0500
commite180dd541a8ae48e4aaf8934765f67955932252f (patch)
tree58860bdd6c918237b36e2524e23d23b000c7fb70
parent78a11f1b97f3ab3fa8c9e225f800489051777bc4 (diff)
sanitizer-dylib: only run where std for x86_64-linux is available
-rw-r--r--src/test/run-make/sanitizer-dylib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/run-make/sanitizer-dylib/Makefile b/src/test/run-make/sanitizer-dylib/Makefile
index 34fdf3b9709..835d5b0d9d8 100644
--- a/src/test/run-make/sanitizer-dylib/Makefile
+++ b/src/test/run-make/sanitizer-dylib/Makefile
@@ -1,4 +1,8 @@
 -include ../tools.mk
 
+ifeq ($(TARGET),x86_64-unknown-linux-gnu)
 all:
-	$(RUSTC) -Z sanitizer=leak --crate-type dylib --target x86_64-unknown-linux-gnu hello.rs 2>&1 | grep -q 'Only executables and rlibs can be compiled with `-Z sanitizer`'
+	$(RUSTC) -Z sanitizer=leak --crate-type dylib --target $(TARGET) hello.rs 2>&1 | grep -q 'Only executables and rlibs can be compiled with `-Z sanitizer`'
+else
+all:
+endif