File tree 5 files changed +20
-35
lines changed
5 files changed +20
-35
lines changed Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 15
15
//! switching compilers for the bootstrap and for build scripts will probably
16
16
//! never get replaced.
17
17
18
- include ! ( "../dylib_util.rs" ) ;
19
- include ! ( "./_helper.rs" ) ;
20
-
21
18
use std:: env;
22
19
use std:: path:: PathBuf ;
23
- use std:: process:: { exit , Child , Command } ;
20
+ use std:: process:: { Child , Command } ;
24
21
use std:: time:: Instant ;
25
22
23
+ use dylib_util:: { dylib_path, dylib_path_var} ;
24
+
25
+ #[ path = "../utils/bin_helpers.rs" ]
26
+ mod bin_helpers;
27
+
28
+ #[ path = "../utils/dylib_util.rs" ]
29
+ mod dylib_util;
30
+
26
31
fn main ( ) {
27
32
let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
28
33
let arg = |name| args. windows ( 2 ) . find ( |args| args[ 0 ] == name) . and_then ( |args| args[ 1 ] . to_str ( ) ) ;
29
34
30
- let stage = parse_rustc_stage ( ) ;
31
- let verbose = parse_rustc_verbose ( ) ;
35
+ let stage = bin_helpers :: parse_rustc_stage ( ) ;
36
+ let verbose = bin_helpers :: parse_rustc_verbose ( ) ;
32
37
33
38
// Detect whether or not we're a build script depending on whether --target
34
39
// is passed (a bit janky...)
Original file line number Diff line number Diff line change 5
5
use std:: env;
6
6
use std:: ffi:: OsString ;
7
7
use std:: path:: PathBuf ;
8
- use std:: process:: { exit , Command } ;
8
+ use std:: process:: Command ;
9
9
10
- include ! ( "../ dylib_util.rs" ) ;
10
+ use dylib_util:: { dylib_path , dylib_path_var } ;
11
11
12
- include ! ( "./_helper.rs" ) ;
12
+ #[ path = "../utils/bin_helpers.rs" ]
13
+ mod bin_helpers;
14
+
15
+ #[ path = "../utils/dylib_util.rs" ]
16
+ mod dylib_util;
13
17
14
18
fn main ( ) {
15
19
let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
16
20
17
- let stage = parse_rustc_stage ( ) ;
18
- let verbose = parse_rustc_verbose ( ) ;
21
+ let stage = bin_helpers :: parse_rustc_stage ( ) ;
22
+ let verbose = bin_helpers :: parse_rustc_verbose ( ) ;
19
23
20
24
let rustdoc = env:: var_os ( "RUSTDOC_REAL" ) . expect ( "RUSTDOC_REAL was not set" ) ;
21
25
let libdir = env:: var_os ( "RUSTDOC_LIBDIR" ) . expect ( "RUSTDOC_LIBDIR was not set" ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments