]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/sanitizer-invalid-cratetype/Makefile
Remove sanitizer_runtime attribute
[rust.git] / src / test / run-make-fulldeps / sanitizer-invalid-cratetype / Makefile
1 # needs-sanitizer-support
2
3 -include ../tools.mk
4
5 # NOTE the address sanitizer only supports x86_64 linux and macOS
6
7 ifeq ($(TARGET),x86_64-apple-darwin)
8 EXTRA_RUSTFLAG=-C rpath
9 else
10 ifeq ($(TARGET),x86_64-unknown-linux-gnu)
11 EXTRA_RUSTFLAG=
12 endif
13 endif
14
15 all:
16         $(RUSTC) -Z sanitizer=address --crate-type proc-macro --target $(TARGET) hello.rs 2>&1 | $(CGREP) '-Z sanitizer'