Skip to content

Commit d21bebe

Browse files
committed
Auto merge of #59799 - Zoxc:vs2019, r=alexcrichton
Update cmake, cc and compiler_builtins for VS 2019 support r? @alexcrichton
2 parents 96d700f + 7b28ddc commit d21bebe

File tree

9 files changed

+62
-54
lines changed

9 files changed

+62
-54
lines changed

Cargo.lock

+46-46
Large diffs are not rendered by default.

src/bootstrap/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ test = false
3636

3737
[dependencies]
3838
build_helper = { path = "../build_helper" }
39-
cmake = "0.1.23"
39+
cmake = "0.1.38"
4040
filetime = "0.2"
4141
num_cpus = "1.0"
4242
getopts = "0.2"
43-
cc = "1.0.1"
43+
cc = "1.0.35"
4444
libc = "0.2"
4545
serde = "1.0.8"
4646
serde_derive = "1.0.8"

src/bootstrap/sanity.rs

+5
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ pub fn check(build: &mut Build) {
131131
continue;
132132
}
133133

134+
// We don't use a C compiler on wasm32
135+
if target.contains("wasm32") {
136+
continue;
137+
}
138+
134139
if !build.config.dry_run {
135140
cmd_finder.must_have(build.cc(*target));
136141
if let Some(ar) = build.ar(*target) {

src/bootstrap/test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,10 @@ impl Step for Compiletest {
10161016
// Also provide `rust_test_helpers` for the host.
10171017
builder.ensure(native::TestHelpers { target: compiler.host });
10181018

1019-
builder.ensure(native::TestHelpers { target });
1019+
// wasm32 can't build the test helpers
1020+
if !target.contains("wasm32") {
1021+
builder.ensure(native::TestHelpers { target });
1022+
}
10201023
builder.ensure(RemoteCopyLibs { compiler, target });
10211024

10221025
let mut cmd = builder.tool_cmd(Tool::Compiletest);

src/liballoc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path = "lib.rs"
1212

1313
[dependencies]
1414
core = { path = "../libcore" }
15-
compiler_builtins = { version = "0.1.0", features = ['rustc-dep-of-std'] }
15+
compiler_builtins = { version = "0.1.10", features = ['rustc-dep-of-std'] }
1616

1717
[dev-dependencies]
1818
rand = "0.6"

src/librustc_asan/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212

1313
[build-dependencies]
1414
build_helper = { path = "../build_helper" }
15-
cmake = "0.1.18"
15+
cmake = "0.1.38"
1616

1717
[dependencies]
1818
alloc = { path = "../liballoc" }

src/librustc_lsan/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212

1313
[build-dependencies]
1414
build_helper = { path = "../build_helper" }
15-
cmake = "0.1.18"
15+
cmake = "0.1.38"
1616

1717
[dependencies]
1818
alloc = { path = "../liballoc" }

src/librustc_msan/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212

1313
[build-dependencies]
1414
build_helper = { path = "../build_helper" }
15-
cmake = "0.1.18"
15+
cmake = "0.1.38"
1616

1717
[dependencies]
1818
alloc = { path = "../liballoc" }

src/librustc_tsan/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212

1313
[build-dependencies]
1414
build_helper = { path = "../build_helper" }
15-
cmake = "0.1.18"
15+
cmake = "0.1.38"
1616

1717
[dependencies]
1818
alloc = { path = "../liballoc" }

0 commit comments

Comments
 (0)