Skip to content

Commit e180dd5

Browse files
author
Jorge Aparicio
committed
sanitizer-dylib: only run where std for x86_64-linux is available
1 parent 78a11f1 commit e180dd5

File tree

1 file changed

+5
-1
lines changed
  • src/test/run-make/sanitizer-dylib

1 file changed

+5
-1
lines changed
+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
-include ../tools.mk
22

3+
ifeq ($(TARGET),x86_64-unknown-linux-gnu)
34
all:
4-
$(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`'
5+
$(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`'
6+
else
7+
all:
8+
endif

0 commit comments

Comments
 (0)