File tree 4 files changed +9
-7
lines changed
test/run-make/sanitizer-memory
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ matrix:
16
16
if : type = pull_request OR branch = auto
17
17
18
18
- env : IMAGE=dist-x86_64-linux DEPLOY=1
19
- if : branch = try OR branch = auto
19
+ if : branch = auto
20
20
21
21
# "alternate" deployments, these are "nightlies" but don't have assertions
22
22
# turned on, they're deployed to a different location primarily for projects
23
23
# which are stuck on nightly and don't want llvm assertions in the artifacts
24
24
# that they use.
25
25
- env : IMAGE=dist-x86_64-linux DEPLOY_ALT=1
26
- if : branch = auto
26
+ if : branch = try OR branch = auto
27
27
28
28
- env : >
29
29
RUST_CHECK_TARGET=dist
@@ -322,7 +322,7 @@ deploy:
322
322
secure : " kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
323
323
on :
324
324
branch : try
325
- condition : $DEPLOY = 1
325
+ condition : $DEPLOY_ALT = 1
326
326
327
327
# this is the same as the above deployment provider except that it uploads to
328
328
# a slightly different directory and has a different trigger
Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ impl Config {
528
528
// Now that we've reached the end of our configuration, infer the
529
529
// default values for all options that we haven't otherwise stored yet.
530
530
531
- let default = config . channel == "nightly" ;
531
+ let default = false ;
532
532
config. llvm_assertions = llvm_assertions. unwrap_or ( default) ;
533
533
534
534
let default = match & config. channel [ ..] {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
49
49
if [ " $NO_LLVM_ASSERTIONS " = " 1" ]; then
50
50
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --disable-llvm-assertions"
51
51
elif [ " $DEPLOY_ALT " != " " ]; then
52
- RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --disable -llvm-assertions"
52
+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable -llvm-assertions"
53
53
fi
54
54
else
55
55
# We almost always want debug assertions enabled, but sometimes this takes too
Original file line number Diff line number Diff line change 3
3
all :
4
4
ifeq ($(TARGET ) ,x86_64-unknown-linux-gnu)
5
5
ifdef SANITIZER_SUPPORT
6
- $(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | grep -q librustc_msan
7
- $(TMPDIR)/uninit 2>&1 | grep -q use-of-uninitialized-value
6
+ $(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | tee $(TMPDIR)/out
7
+ grep -q librustc_msan $(TMPDIR)/out
8
+ $(TMPDIR)/uninit 2>&1 | tee $(TMPDIR)/out
9
+ grep -q use-of-uninitialized-value $(TMPDIR)/out
8
10
endif
9
11
endif
10
12
You can’t perform that action at this time.
0 commit comments