about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-10-29 02:26:59 +0000
committerbors <bors@rust-lang.org>2014-10-29 02:26:59 +0000
commit1effc9e1413d83dd94d6aa1b85ecf7409464becd (patch)
treef0b2847b91824fa62c700a18159ca0bde4ff2ff8 /src
parent1652a1f2c61883c5f2b55a952796619d8aef365e (diff)
parent79723a3e304bb74e3c5280b504603c764dc574e1 (diff)
downloadrust-1effc9e1413d83dd94d6aa1b85ecf7409464becd.tar.gz
rust-1effc9e1413d83dd94d6aa1b85ecf7409464becd.zip
auto merge of #18410 : thestinger/rust/revert-parallel, r=alexcrichton
This reverts commit c245c5bbad10923b47c9f66d5f0da2913ef11a38.

Parallel code generation generates invalid code for librand, which is
caught by recent versions of binutils.
Diffstat (limited to 'src')
-rw-r--r--src/librustc/driver/config.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/librustc/driver/config.rs b/src/librustc/driver/config.rs
index d6798d59ecb..1f44808275f 100644
--- a/src/librustc/driver/config.rs
+++ b/src/librustc/driver/config.rs
@@ -780,20 +780,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
         early_warn("the --crate-file-name argument has been renamed to \
                     --print-file-name");
     }
-
-    let mut cg = build_codegen_options(matches);
-
-    if cg.codegen_units == 0 {
-        match opt_level {
-            // `-C lto` doesn't work with multiple codegen units.
-            _ if cg.lto => cg.codegen_units = 1,
-
-            No | Less => cg.codegen_units = 2,
-            Default | Aggressive => cg.codegen_units = 1,
-        }
-    }
-    let cg = cg;
-
+    let cg = build_codegen_options(matches);
 
     if !cg.remark.is_empty() && debuginfo == NoDebugInfo {
         early_warn("-C remark will not show source locations without --debuginfo");