diff options
| author | bors <bors@rust-lang.org> | 2013-12-20 15:21:33 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-20 15:21:33 -0800 |
| commit | 9d1de0b699a669d01ea5ecd3dea0424ab94db369 (patch) | |
| tree | dfffc0a9751a7b4aae7216cb9801b92a0a541023 /src/libstd | |
| parent | d5d5c5064b3f27918432484d27b88204df940209 (diff) | |
| parent | 87add533278d723057192292306505e269e737bc (diff) | |
| download | rust-9d1de0b699a669d01ea5ecd3dea0424ab94db369.tar.gz rust-9d1de0b699a669d01ea5ecd3dea0424ab94db369.zip | |
auto merge of #11077 : alexcrichton/rust/crate-id, r=cmr
Right now the --crate-id and related flags are all process *after* the entire crate is parsed. This is less than desirable when used with makefiles because it means that just to learn the output name of the crate you have to parse the entire crate (unnecessary). This commit changes the behavior to lift the handling of these flags much sooner in the compilation process. This allows us to not have to parse the entire crate and only have to worry about parsing the crate attributes themselves. The related methods have all been updated to take an array of attributes rather than a crate. Additionally, this ceases duplication of the "what output are we producing" logic in order to correctly handle things in the case of --test. Finally, this adds tests for all of this functionality to ensure that it does not regress.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
