Mention cdylibs in LTO error message.

This commit is contained in:
Michael Woerister 2016-12-02 18:02:14 -05:00
parent 93da4f81bf
commit 3548c8f560

View File

@ -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");
}
}