auto merge of #11502 : jhasse/rust/crate_type, r=alexcrichton
This is unnecessary and also leads to a bug: When the user specifies ``` #[crate_type = "rlib"]; ``` rustpkg still creates a dylib. Also it's good not to duplicate functionality. `build_session_options` handles this just fine.
This commit is contained in:
commit
0091a15a43
|
@ -185,10 +185,6 @@ pub fn compile_input(context: &BuildContext,
|
|||
let csysroot = context.sysroot();
|
||||
debug!("compile_input's sysroot = {}", csysroot.display());
|
||||
|
||||
let crate_type = match what {
|
||||
Lib => session::OutputDylib,
|
||||
Test | Bench | Main => session::OutputExecutable,
|
||||
};
|
||||
let matches = getopts(debug_flags()
|
||||
+ match what {
|
||||
Lib => ~[~"--lib"],
|
||||
|
@ -230,7 +226,6 @@ pub fn compile_input(context: &BuildContext,
|
|||
debug!("Output type = {:?}", output_type);
|
||||
|
||||
let options = @session::options {
|
||||
outputs: ~[crate_type],
|
||||
optimize: opt,
|
||||
test: what == Test || what == Bench,
|
||||
maybe_sysroot: Some(sysroot_to_use),
|
||||
|
|
Loading…
Reference in New Issue