rustc: Store cached crate metadata in the session
This commit is contained in:
parent
9ca7acb1f3
commit
e2d6475308
6 changed files with 37 additions and 35 deletions
|
|
@ -77,6 +77,10 @@ obj session(cfg targ, map.hashmap[int, crate_metadata] crates) {
|
|||
fn set_external_crate(int num, &crate_metadata metadata) {
|
||||
crates.insert(num, metadata);
|
||||
}
|
||||
|
||||
fn has_external_crate(int num) -> bool {
|
||||
ret crates.contains_key(num);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue