File tree Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -19,32 +19,6 @@ fn main() {
19
19
panic ! ( "Rustc doesn't support MSVC debug runtime." ) ;
20
20
}
21
21
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
-
48
22
build_jsapi ( ) ;
49
23
build_jsglue ( ) ;
50
24
build_jsapi_bindings ( ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments