File tree Expand file tree Collapse file tree 12 files changed +16
-16
lines changed
sanitizer-invalid-cratetype Expand file tree Collapse file tree 12 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -1268,11 +1268,11 @@ impl Step for Compiletest {
12681268 builder. add_rust_test_threads ( & mut cmd) ;
12691269
12701270 if builder. config . sanitizers {
1271- cmd. env ( "SANITIZER_SUPPORT " , "1" ) ;
1271+ cmd. env ( "RUSTC_SANITIZER_SUPPORT " , "1" ) ;
12721272 }
12731273
12741274 if builder. config . profiler {
1275- cmd. env ( "PROFILER_SUPPORT " , "1" ) ;
1275+ cmd. env ( "RUSTC_PROFILER_SUPPORT " , "1" ) ;
12761276 }
12771277
12781278 cmd. env ( "RUST_TEST_TMPDIR" , builder. out . join ( "tmp" ) ) ;
Original file line number Diff line number Diff line change 11-include ../tools.mk
22
33all :
4- ifeq ($(PROFILER_SUPPORT ) ,1)
4+ ifeq ($(RUSTC_PROFILER_SUPPORT ) ,1)
55 $(RUSTC) -Copt-level=3 -Clto=fat -Z pgo-gen="$(TMPDIR)" test.rs
66 $(call RUN,test) || exit 1
77 [ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)
Original file line number Diff line number Diff line change 11-include ../tools.mk
22
33all :
4- ifeq ($(PROFILER_SUPPORT ) ,1)
4+ ifeq ($(RUSTC_PROFILER_SUPPORT ) ,1)
55 $(RUSTC) -O -Ccodegen-units=1 -Z pgo-gen="$(TMPDIR)" --emit=llvm-ir test.rs
66 # We expect symbols starting with "__llvm_profile_".
77 $(CGREP) "__llvm_profile_" < $(TMPDIR)/test.ll
Original file line number Diff line number Diff line change 11-include ../tools.mk
22
33all :
4- ifeq ($(PROFILER_SUPPORT ) ,1)
4+ ifeq ($(RUSTC_PROFILER_SUPPORT ) ,1)
55 $(RUSTC) -g -Z pgo-gen="$(TMPDIR)" test.rs
66 $(call RUN,test) || exit 1
77 [ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)
Original file line number Diff line number Diff line change 11-include ../tools.mk
22
33all :
4- ifeq ($(PROFILER_SUPPORT ) ,1)
4+ ifeq ($(RUSTC_PROFILER_SUPPORT ) ,1)
55 $(RUSTC) -g -Z profile test.rs
66 $(call RUN,test) || exit 1
77 [ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1)
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ LOG := $(TMPDIR)/log.txt
55# NOTE the address sanitizer only supports x86_64 linux and macOS
66
77ifeq ($(TARGET ) ,x86_64-apple-darwin)
8- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
8+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
99EXTRA_RUSTFLAG =-C rpath
1010else
1111ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
12- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
12+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
1313
1414# Apparently there are very specific Linux kernels, notably the one that's
1515# currently on Travis CI, which contain a buggy commit that triggers failures in
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ LOG := $(TMPDIR)/log.txt
88# is correctly detected.
99
1010ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
11- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
11+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
1212
1313# See comment in sanitizer-address/Makefile for why this is here
1414EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ LOG := $(TMPDIR)/log.txt
88# is correctly detected.
99
1010ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
11- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
11+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
1212
1313# See comment in sanitizer-address/Makefile for why this is here
1414EXTRA_RUSTFLAG =-C relocation-model=dynamic-no-pic
Original file line number Diff line number Diff line change 33# NOTE the address sanitizer only supports x86_64 linux and macOS
44
55ifeq ($(TARGET ) ,x86_64-apple-darwin)
6- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
6+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
77EXTRA_RUSTFLAG =-C rpath
88else
99ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
10- ASAN_SUPPORT =$(SANITIZER_SUPPORT )
10+ ASAN_SUPPORT =$(RUSTC_SANITIZER_SUPPORT )
1111EXTRA_RUSTFLAG =
1212endif
1313endif
Original file line number Diff line number Diff line change 66# FIXME(#46126) ThinLTO for libstd broke this test
77
88all :
9- ifdef SANITIZER_SUPPORT
9+ ifdef RUSTC_SANITIZER_SUPPORT
1010 $(RUSTC) -C opt-level=1 -g -Z sanitizer=leak -Z print-link-args leak.rs | $(CGREP) librustc_lsan
1111 $(TMPDIR)/leak 2>&1 | $(CGREP) 'detected memory leaks'
1212endif
You can’t perform that action at this time.
0 commit comments