mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 17:33:07 +00:00
Don't overwrite the options.output value from build_session_options
This commit is contained in:
parent
1fda761e9c
commit
e64b49d8ff
@ -185,10 +185,6 @@ pub fn compile_input(context: &BuildContext,
|
|||||||
let csysroot = context.sysroot();
|
let csysroot = context.sysroot();
|
||||||
debug!("compile_input's sysroot = {}", csysroot.display());
|
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()
|
let matches = getopts(debug_flags()
|
||||||
+ match what {
|
+ match what {
|
||||||
Lib => ~[~"--lib"],
|
Lib => ~[~"--lib"],
|
||||||
@ -230,7 +226,6 @@ pub fn compile_input(context: &BuildContext,
|
|||||||
debug!("Output type = {:?}", output_type);
|
debug!("Output type = {:?}", output_type);
|
||||||
|
|
||||||
let options = @session::options {
|
let options = @session::options {
|
||||||
outputs: ~[crate_type],
|
|
||||||
optimize: opt,
|
optimize: opt,
|
||||||
test: what == Test || what == Bench,
|
test: what == Test || what == Bench,
|
||||||
maybe_sysroot: Some(sysroot_to_use),
|
maybe_sysroot: Some(sysroot_to_use),
|
||||||
|
Loading…
Reference in New Issue
Block a user