File tree 4 files changed +37
-4
lines changed
4 files changed +37
-4
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Implementation of the install aspects of the compiler.
12
+ //!
13
+ //! This module is responsible for installing the standard library,
14
+ //! compiler, and documentation.
15
+
16
+ use Build ;
17
+
18
+ /// Installs everything.
19
+ pub fn install ( _: & Build , stage : u32 , host : & str ) {
20
+ println ! ( "Install everything stage{} ({})" , stage, host) ;
21
+ println ! ( "Note: install currently does nothing." ) ;
22
+ }
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ mod config;
62
62
mod dist;
63
63
mod doc;
64
64
mod flags;
65
+ mod install;
65
66
mod native;
66
67
mod sanity;
67
68
mod step;
@@ -453,6 +454,8 @@ impl Build {
453
454
DistStd { compiler } => dist:: std ( self , & compiler, target. target ) ,
454
455
DistSrc { _dummy } => dist:: rust_src ( self ) ,
455
456
457
+ Install { stage } => install:: install ( self , stage, target. target ) ,
458
+
456
459
DebuggerScripts { stage } => {
457
460
let compiler = Compiler :: new ( stage, target. target ) ;
458
461
dist:: debugger_scripts ( self ,
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ check-cargotest:
51
51
$(Q )$(BOOTSTRAP ) --step check-cargotest
52
52
dist :
53
53
$(Q )$(BOOTSTRAP ) --step dist
54
+ install :
55
+ $(Q )$(BOOTSTRAP ) --step install
54
56
tidy :
55
57
$(Q )$(BOOTSTRAP ) --step check-tidy --stage 0
56
58
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ macro_rules! targets {
140
140
( dist_std, DistStd { compiler: Compiler <' a> } ) ,
141
141
( dist_src, DistSrc { _dummy: ( ) } ) ,
142
142
143
+ // install target
144
+ ( install, Install { stage: u32 } ) ,
145
+
143
146
// Misc targets
144
147
( android_copy_libs, AndroidCopyLibs { compiler: Compiler <' a> } ) ,
145
148
}
@@ -249,8 +252,7 @@ fn top_level(build: &Build) -> Vec<Step> {
249
252
}
250
253
}
251
254
252
- return targets
253
-
255
+ targets
254
256
}
255
257
256
258
fn add_steps < ' a > ( build : & ' a Build ,
@@ -467,7 +469,7 @@ impl<'a> Step<'a> {
467
469
self . dist( stage) ,
468
470
] ) ;
469
471
}
470
- return base
472
+ base
471
473
}
472
474
Source :: CheckLinkcheck { stage } => {
473
475
vec ! [ self . tool_linkchecker( stage) , self . doc( stage) ]
@@ -590,7 +592,11 @@ impl<'a> Step<'a> {
590
592
base. push ( target. dist_std ( compiler) ) ;
591
593
}
592
594
}
593
- return base
595
+ base
596
+ }
597
+
598
+ Source :: Install { stage } => {
599
+ vec ! [ self . dist( stage) ]
594
600
}
595
601
596
602
Source :: AndroidCopyLibs { compiler } => {
You can’t perform that action at this time.
0 commit comments