File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
src/test/run-make-fulldeps Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11# needs-sanitizer-support
2+ # only-x86_64
3+ # only-linux
24
35-include ../tools.mk
46
@@ -9,11 +11,8 @@ LOG := $(TMPDIR)/log.txt
911# are compiled with address sanitizer, and we assert that a fault in the cdylib
1012# is correctly detected.
1113
12- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
13-
1414# See comment in sanitizer-address/Makefile for why this is here
1515EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
16- endif
1716
1817all :
1918 $(RUSTC ) -g -Z sanitizer=address --crate-type cdylib --target $(TARGET ) $(EXTRA_RUSTFLAG ) library.rs
Original file line number Diff line number Diff line change 11# needs-sanitizer-support
2+ # only-x86_64
3+ # only-linux
24
35-include ../tools.mk
46
@@ -9,10 +11,8 @@ LOG := $(TMPDIR)/log.txt
911# are compiled with address sanitizer, and we assert that a fault in the dylib
1012# is correctly detected.
1113
12- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
1314# See comment in sanitizer-address/Makefile for why this is here
1415EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
15- endif
1616
1717all :
1818 $(RUSTC ) -g -Z sanitizer=address --crate-type dylib --target $(TARGET ) $(EXTRA_RUSTFLAG ) library.rs
Original file line number Diff line number Diff line change 11# needs-sanitizer-support
2+ # only-x86_64
3+ # only-linux
24
35-include ../tools.mk
46
57# This test builds a staticlib, then an executable that links to it.
68# The staticlib and executable both are compiled with address sanitizer,
79# and we assert that a fault in the staticlib is correctly detected.
810
9- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
10- EXTRA_RUSTFLAG =
11- endif
12-
1311all :
1412 $(RUSTC ) -g -Z sanitizer=address --crate-type staticlib --target $(TARGET ) library.rs
1513 $(CC ) program.c $(call STATICLIB,library) $(call OUT_EXE,program) $(EXTRACFLAGS ) $(EXTRACXXFLAGS )
You can’t perform that action at this time.
0 commit comments