File tree 2 files changed +4
-10
lines changed
src/test/run-make-fulldeps 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ LOG := $(TMPDIR)/log.txt
11
11
# are compiled with address sanitizer, and we assert that a fault in the cdylib
12
12
# is correctly detected.
13
13
14
- # See comment in sanitizer-address/Makefile for why this is here
15
- EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
16
-
17
14
all :
18
- $(RUSTC ) -g -Z sanitizer=address --crate-type cdylib --target $(TARGET ) $( EXTRA_RUSTFLAG ) library.rs
19
- $(RUSTC ) -g -Z sanitizer=address --crate-type bin --target $(TARGET ) $( EXTRA_RUSTFLAG ) -llibrary program.rs
15
+ $(RUSTC ) -g -Z sanitizer=address --crate-type cdylib --target $(TARGET ) library.rs
16
+ $(RUSTC ) -g -Z sanitizer=address --crate-type bin --target $(TARGET ) -llibrary program.rs
20
17
LD_LIBRARY_PATH=$(TMPDIR ) $(TMPDIR ) /program 2>&1 | $(CGREP ) stack-buffer-overflow
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ LOG := $(TMPDIR)/log.txt
11
11
# are compiled with address sanitizer, and we assert that a fault in the dylib
12
12
# is correctly detected.
13
13
14
- # See comment in sanitizer-address/Makefile for why this is here
15
- EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
16
-
17
14
all :
18
- $(RUSTC ) -g -Z sanitizer=address --crate-type dylib --target $(TARGET ) $( EXTRA_RUSTFLAG ) library.rs
19
- $(RUSTC ) -g -Z sanitizer=address --crate-type bin --target $(TARGET ) $( EXTRA_RUSTFLAG ) -llibrary program.rs
15
+ $(RUSTC ) -g -Z sanitizer=address --crate-type dylib --target $(TARGET ) library.rs
16
+ $(RUSTC ) -g -Z sanitizer=address --crate-type bin --target $(TARGET ) -llibrary program.rs
20
17
LD_LIBRARY_PATH=$(TMPDIR ) $(TMPDIR ) /program 2>&1 | $(CGREP ) stack-buffer-overflow
You can’t perform that action at this time.
0 commit comments