Skip to content

Commit 73bd2f1

Browse files
committed
Remove unnecessary use of vcvars batch script due to clang-cl.
1 parent d88db1a commit 73bd2f1

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

build.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,6 @@ fn main() {
1919
panic!("Rustc doesn't support MSVC debug runtime.");
2020
}
2121

22-
if target.contains("windows") && host != target {
23-
assert_eq!(host, "x86_64-pc-windows-msvc",
24-
"Only cross-compiling from x64 is supported");
25-
assert_eq!(target, "i686-pc-windows-msvc",
26-
"Only cross-compiling to x86 is supported");
27-
assert!(env::var("VSINSTALLDIR").is_err());
28-
// When cross-compiling on Windows, we need to ensure that the PATH is
29-
// set up appropriately for the target before invoking make.
30-
if env::var("VCVARSALL_PATH").is_err() {
31-
panic!("Need to provide VCVARSALL_PATH value with path to \
32-
vcvarsall.bat from Visual Studio installation");
33-
}
34-
35-
let vcvars = Command::new("vcvars.bat").output().unwrap();
36-
assert!(vcvars.status.success());
37-
let output = str::from_utf8(&vcvars.stdout).unwrap();
38-
for line in output.lines() {
39-
let mut parts = line.splitn(2, '=');
40-
if let Some(name) = parts.next() {
41-
if let Some(value) = parts.next() {
42-
env::set_var(name, value);
43-
}
44-
}
45-
}
46-
}
47-
4822
build_jsapi();
4923
build_jsglue();
5024
build_jsapi_bindings();

vcvars.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)