From e64b49d8ff530e313927a9385e947188a08adddf Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Sun, 12 Jan 2014 19:10:43 +0100 Subject: [PATCH] Don't overwrite the options.output value from build_session_options --- src/librustpkg/util.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index 1c76b652975..99f1d9d67bc 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -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),