Skip to content

Commit

Permalink
Mention cdylibs in LTO error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Dec 5, 2016
1 parent 93da4f8 commit 3548c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/back/lto.rs
Expand Up @@ -56,7 +56,7 @@ pub fn run(sess: &session::Session,
// Make sure we actually can run LTO
for crate_type in sess.crate_types.borrow().iter() {
if !crate_type_allows_lto(*crate_type) {
sess.fatal("lto can only be run for executables and \
sess.fatal("lto can only be run for executables, cdylibs and \
static library outputs");
}
}
Expand Down

0 comments on commit 3548c8f

Please sign in to comment.