mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
librustc_driver has been updated
This commit is contained in:
parent
b0097783b9
commit
93fe5c82bf
@ -914,7 +914,7 @@ pub fn build_output_filenames(input: &Input,
|
|||||||
|
|
||||||
// If a crate name is present, we use it as the link name
|
// If a crate name is present, we use it as the link name
|
||||||
let stem = sess.opts.crate_name.clone().or_else(|| {
|
let stem = sess.opts.crate_name.clone().or_else(|| {
|
||||||
attr::find_crate_name(attrs).map(|n| n.get().to_string())
|
attr::find_crate_name(attrs).map(|n| n.to_string())
|
||||||
}).unwrap_or(input.filestem());
|
}).unwrap_or(input.filestem());
|
||||||
|
|
||||||
OutputFilenames {
|
OutputFilenames {
|
||||||
|
Loading…
Reference in New Issue
Block a user