about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2016-12-02 18:02:14 -0500
committerMichael Woerister <michaelwoerister@posteo.net>2016-12-05 11:05:25 -0500
commit3548c8f56011ade169453231389bade8ca8a6bb1 (patch)
treeac113d5acf8c16af567ff0bca46715d00b504511
parent93da4f81bfb879eea9236d5fd16734a68836c97c (diff)
downloadrust-3548c8f56011ade169453231389bade8ca8a6bb1.tar.gz
rust-3548c8f56011ade169453231389bade8ca8a6bb1.zip
Mention cdylibs in LTO error message.
-rw-r--r--src/librustc_trans/back/lto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trans/back/lto.rs b/src/librustc_trans/back/lto.rs
index 1960b368278..f137bfff034 100644
--- a/src/librustc_trans/back/lto.rs
+++ b/src/librustc_trans/back/lto.rs
@@ -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");
         }
     }