This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +19
-35
lines changed Expand file tree Collapse file tree 5 files changed +19
-35
lines changed Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 1515//! switching compilers for the bootstrap and for build scripts will probably
1616//! never get replaced.
1717
18- include ! ( "../dylib_util.rs" ) ;
19- include ! ( "./_helper.rs" ) ;
20-
2118use std:: env;
2219use std:: path:: PathBuf ;
23- use std:: process:: { exit , Child , Command } ;
20+ use std:: process:: { Child , Command } ;
2421use std:: time:: Instant ;
2522
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+
2631fn main ( ) {
2732 let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
2833 let arg = |name| args. windows ( 2 ) . find ( |args| args[ 0 ] == name) . and_then ( |args| args[ 1 ] . to_str ( ) ) ;
2934
30- let verbose = parse_rustc_verbose ( ) ;
35+ let verbose = bin_helpers :: parse_rustc_verbose ( ) ;
3136
3237 // Detect whether or not we're a build script depending on whether --target
3338 // is passed (a bit janky...)
Original file line number Diff line number Diff line change 55use std:: env;
66use std:: ffi:: OsString ;
77use std:: path:: PathBuf ;
8- use std:: process:: { exit , Command } ;
8+ use std:: process:: Command ;
99
10- include ! ( "../ dylib_util.rs" ) ;
10+ use dylib_util:: { dylib_path , dylib_path_var } ;
1111
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;
1317
1418fn main ( ) {
1519 let args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
1620
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 ( ) ;
1923
2024 let rustdoc = env:: var_os ( "RUSTDOC_REAL" ) . expect ( "RUSTDOC_REAL was not set" ) ;
2125 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