mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
sanitizer-dylib: only run where std for x86_64-linux is available
This commit is contained in:
parent
78a11f1b97
commit
e180dd541a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user