]> git.lizzy.rs Git - rust.git/commitdiff
Mention cdylibs in LTO error message.
authorMichael Woerister <michaelwoerister@posteo.net>
Fri, 2 Dec 2016 23:02:14 +0000 (18:02 -0500)
committerMichael Woerister <michaelwoerister@posteo.net>
Mon, 5 Dec 2016 16:05:25 +0000 (11:05 -0500)
src/librustc_trans/back/lto.rs

index 1960b368278749613cd8d256a888e24083d3ad29..f137bfff034d0e37c7cc9af7afd364a86d42064b 100644 (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");
         }
     }