File tree 3 files changed +6
-9
lines changed
src/test/run-make-fulldeps
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
# needs-sanitizer-support
2
+ # only-x86_64
3
+ # only-linux
2
4
3
5
-include ../tools.mk
4
6
@@ -9,11 +11,8 @@ LOG := $(TMPDIR)/log.txt
9
11
# are compiled with address sanitizer, and we assert that a fault in the cdylib
10
12
# is correctly detected.
11
13
12
- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
13
-
14
14
# See comment in sanitizer-address/Makefile for why this is here
15
15
EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
16
- endif
17
16
18
17
all :
19
18
$(RUSTC ) -g -Z sanitizer=address --crate-type cdylib --target $(TARGET ) $(EXTRA_RUSTFLAG ) library.rs
Original file line number Diff line number Diff line change 1
1
# needs-sanitizer-support
2
+ # only-x86_64
3
+ # only-linux
2
4
3
5
-include ../tools.mk
4
6
@@ -9,10 +11,8 @@ LOG := $(TMPDIR)/log.txt
9
11
# are compiled with address sanitizer, and we assert that a fault in the dylib
10
12
# is correctly detected.
11
13
12
- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
13
14
# See comment in sanitizer-address/Makefile for why this is here
14
15
EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
15
- endif
16
16
17
17
all :
18
18
$(RUSTC ) -g -Z sanitizer=address --crate-type dylib --target $(TARGET ) $(EXTRA_RUSTFLAG ) library.rs
Original file line number Diff line number Diff line change 1
1
# needs-sanitizer-support
2
+ # only-x86_64
3
+ # only-linux
2
4
3
5
-include ../tools.mk
4
6
5
7
# This test builds a staticlib, then an executable that links to it.
6
8
# The staticlib and executable both are compiled with address sanitizer,
7
9
# and we assert that a fault in the staticlib is correctly detected.
8
10
9
- ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
10
- EXTRA_RUSTFLAG =
11
- endif
12
-
13
11
all :
14
12
$(RUSTC ) -g -Z sanitizer=address --crate-type staticlib --target $(TARGET ) library.rs
15
13
$(CC ) program.c $(call STATICLIB,library) $(call OUT_EXE,program) $(EXTRACFLAGS ) $(EXTRACXXFLAGS )
You can’t perform that action at this time.
0 commit comments