-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache rmeta files whenever metadata is present in emit. #441
Conversation
src/compiler/rust.rs
Outdated
@@ -915,7 +916,7 @@ fn parse_arguments(arguments: &[OsString], cwd: &Path) -> CompilerArguments<Pars | |||
staticlibs: staticlibs, | |||
crate_name: crate_name.to_string(), | |||
dep_info: dep_info.map(|s| s.into()), | |||
rename_rlib_to_rmeta, | |||
emit: emit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emit: emit, | |
emit, |
src/compiler/rust.rs
Outdated
// be fixed. | ||
if !outputs.contains(&rmeta) { | ||
outputs.push(rmeta); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
} |
src/compiler/rust.rs
Outdated
}; | ||
if !emit.contains("link") { | ||
outputs.retain(|p| *p != lib); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable!
@chmanchester Thanks, this was driving me crazy! |
Fixes #436, Fixes #429