Skip to content

Commit 61928a0

Browse files
committed
Rollup merge of #40865 - alexcrichton:downgrade-mingw, r=arielb1
appveyor: Downgrade MinGW to 6.2.0 It looks like the 6.3.0 MinGW comes with a gdb which has issues (#40184) that an attempted workaround (#40777) does not actually fix (#40835). The original motivation for upgradin MinGW was to fix build flakiness (#40546) due to newer builds not exhibiting the same bug, so let's hope that 6.2.0 isn't too far back in time and still contains the fix we need. Closes #40835
2 parents 0dbf84b + e87dd42 commit 61928a0

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

appveyor.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ environment:
4646
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-ninja
4747
SCRIPT: python x.py test
4848
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
49-
MINGW_ARCHIVE: i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z
49+
MINGW_ARCHIVE: i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
5050
MINGW_DIR: mingw32
5151
- MSYS_BITS: 64
5252
SCRIPT: python x.py test
5353
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-ninja
5454
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
55-
MINGW_ARCHIVE: x86_64-6.3.0-release-win32-seh-rt_v5-rev1.7z
55+
MINGW_ARCHIVE: x86_64-6.2.0-release-win32-seh-rt_v5-rev1.7z
5656
MINGW_DIR: mingw64
5757

5858
# 32/64 bit MSVC and GNU deployment
@@ -71,14 +71,14 @@ environment:
7171
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-extended --enable-ninja
7272
SCRIPT: python x.py dist
7373
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
74-
MINGW_ARCHIVE: i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z
74+
MINGW_ARCHIVE: i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
7575
MINGW_DIR: mingw32
7676
DEPLOY: 1
7777
- MSYS_BITS: 64
7878
SCRIPT: python x.py dist
7979
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-extended --enable-ninja
8080
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
81-
MINGW_ARCHIVE: x86_64-6.3.0-release-win32-seh-rt_v5-rev1.7z
81+
MINGW_ARCHIVE: x86_64-6.2.0-release-win32-seh-rt_v5-rev1.7z
8282
MINGW_DIR: mingw64
8383
DEPLOY: 1
8484

src/tools/compiletest/src/procsrv.rs

+2-18
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,8 @@ pub fn run(lib_path: &str,
5858
let mut cmd = Command::new(prog);
5959
cmd.args(args)
6060
.stdout(Stdio::piped())
61-
.stderr(Stdio::piped());
62-
63-
// Why oh why do we sometimes make a pipe and sometimes inherit the stdin
64-
// stream, well that's an excellent question! In theory it should suffice to
65-
// always create a pipe here and be done with it. Unfortunately though
66-
// there's apparently something odd with the gdb that comes with gcc 6.3.0
67-
// on MinGW. Tracked at rust-lang/rust#40184 when stdin is piped here
68-
// (unconditionally) then all gdb tests will fail on MinGW when using gcc
69-
// 6.3.0. WHen using an inherited stdin though they happen to all work!
70-
//
71-
// As to why this fixes the issue, well, I have no idea. If you can remove
72-
// this branch and unconditionally use `piped` and it gets past @bors please
73-
// feel free to send a PR!
74-
if input.is_some() || !cfg!(windows) {
75-
cmd.stdin(Stdio::piped());
76-
} else {
77-
cmd.stdin(Stdio::inherit());
78-
}
61+
.stderr(Stdio::piped())
62+
.stdin(Stdio::piped());
7963

8064
add_target_env(&mut cmd, lib_path, aux_path);
8165
for (key, val) in env {

0 commit comments

Comments
 (0)