]> git.lizzy.rs Git - rust.git/blobdiff - src/librustpkg/lib.rs
Add generation of static libraries to rustc
[rust.git] / src / librustpkg / lib.rs
index b87bd0c58246b59f5ee4188d5c462c6e94387887..157d8ba0105fce76649d8030557c7ec18c79c3fc 100644 (file)
@@ -17,7 +17,8 @@
        url = "https://github.com/mozilla/rust/tree/master/src/librustpkg")];
 
 #[license = "MIT/ASL2"];
-#[crate_type = "lib"];
+#[crate_type = "lib"]; // NOTE: remove after stage0 snapshot
+#[crate_type = "dylib"];
 
 #[feature(globs, managed_boxes)];
 
@@ -114,7 +115,7 @@ fn parse<'a>(sysroot: Path,
         let options = @session::options {
             binary: binary,
             maybe_sysroot: Some(@sysroot),
-            crate_type: session::bin_crate,
+            outputs: ~[session::OutputExecutable],
             .. (*session::basic_options()).clone()
         };
         let input = driver::file_input(script.clone());