File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,16 @@ in [librustc_back](https://github.com/rust-lang/rust/tree/master/src/librustc_ba
87
87
(which also contains some things used primarily during translation).
88
88
89
89
All these phases are coordinated by the driver. To see the exact sequence, look
90
- at the ` compile_input ` function in [ librustc_driver/driver.rs] ( https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/ ) .
91
- The driver (which is found in [ librust_driver] ( https://github.com/rust-lang/rust/tree/master/src/librustc_driver ) )
92
- handles all the highest level coordination of compilation - handling command
93
- line arguments, maintaining compilation state (primarily in the ` Session ` ), and
94
- calling the appropriate code to run each phase of compilation. It also handles
90
+ at [ the ` compile_input ` function in ` librustc_driver ` ] [ compile-input ] .
91
+ The driver handles all the highest level coordination of compilation - handling
92
+ command-line arguments, maintaining compilation state (primarily in the ` Session ` ),
93
+ and calling the appropriate code to run each phase of compilation. It also handles
95
94
high level coordination of pretty printing and testing. To create a drop-in
96
95
compiler replacement or a compiler replacement, we leave most of compilation
97
96
alone and customise the driver using its APIs.
98
97
98
+ [ compile-input ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/driver/fn.compile_input.html
99
+
99
100
100
101
## The driver customisation APIs
101
102
You can’t perform that action at this time.
0 commit comments