Skip to content

Commit 3111be3

Browse files
committed
---
yaml --- r: 58801 b: refs/heads/incoming c: bfd3cd8 h: refs/heads/master i: 58799: 70403c7 v: v3
1 parent 8fec31b commit 3111be3

File tree

6 files changed

+15
-28
lines changed

6 files changed

+15
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 832f7b758f28d36030df27c888ef9248ba584859
9+
refs/heads/incoming: bfd3cd8171bee519093f570264e5a2b1dc17e9d8
1010
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub use io::{print, println};
3131
/* Reexported types and traits */
3232

3333
pub use clone::Clone;
34-
pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
34+
pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater, Equiv};
3535
pub use container::{Container, Mutable, Map, Set};
3636
pub use hash::Hash;
3737
pub use old_iter::{BaseIter, ReverseIter, MutableIter, ExtendedIter, EqIter};

branches/incoming/src/libcore/to_bytes.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ impl<A> IterBytes for *const A {
419419
}
420420
}
421421

422-
423-
trait ToBytes {
422+
pub trait ToBytes {
424423
fn to_bytes(&self, lsb0: bool) -> ~[u8];
425424
}
426425

branches/incoming/src/librustc/back/link.rs

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -752,26 +752,18 @@ pub fn link_binary(sess: Session,
752752
// instead of hard-coded gcc.
753753
// For win32, there is no cc command,
754754
// so we add a condition to make it use gcc.
755-
let cc_prog: ~str = match sess.opts.linker {
756-
Some(copy linker) => linker,
757-
None => {
758-
if sess.targ_cfg.os == session::os_android {
759-
match &sess.opts.android_cross_path {
760-
&Some(copy path) => {
761-
fmt!("%s/bin/arm-linux-androideabi-gcc", path)
762-
}
763-
&None => {
764-
sess.fatal(~"need Android NDK path for linking \
765-
(--android-cross-path)")
766-
}
767-
}
768-
} else if sess.targ_cfg.os == session::os_win32 {
769-
~"gcc"
770-
} else {
771-
~"cc"
755+
let cc_prog: ~str = if sess.targ_cfg.os == session::os_android {
756+
match &sess.opts.android_cross_path {
757+
&Some(copy path) => {
758+
fmt!("%s/bin/arm-linux-androideabi-gcc", path)
759+
}
760+
&None => {
761+
sess.fatal(~"need Android NDK path for linking \
762+
(--android-cross-path)")
772763
}
773764
}
774-
};
765+
} else if sess.targ_cfg.os == session::os_win32 { ~"gcc" }
766+
else { ~"cc" };
775767
// The invocations of cc share some flags across platforms
776768
777769

branches/incoming/src/librustc/driver/driver.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ pub fn build_session_options(binary: @~str,
650650
};
651651
652652
let addl_lib_search_paths = getopts::opt_strs(matches, ~"L").map(|s| Path(*s));
653-
let linker = getopts::opt_maybe_str(matches, ~"linker");
653+
654654
let linker_args = getopts::opt_strs(matches, ~"link-args").flat_map( |a| {
655655
let mut args = ~[];
656656
for str::each_split_char(*a, ' ') |arg| {
@@ -676,7 +676,6 @@ pub fn build_session_options(binary: @~str,
676676
jit: jit,
677677
output_type: output_type,
678678
addl_lib_search_paths: addl_lib_search_paths,
679-
linker: linker,
680679
linker_args: linker_args,
681680
maybe_sysroot: sysroot_opt,
682681
target_triple: target,
@@ -761,7 +760,6 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
761760
optmulti("L", "", "Add a directory to the library search path",
762761
"PATH"),
763762
optflag("", "lib", "Compile a library crate"),
764-
optopt("", "linker", "Program to use for linking instead of the default.", "LINKER"),
765763
optmulti("", "link-args", "FLAGS is a space-separated list of flags
766764
passed to the linker", "FLAGS"),
767765
optflag("", "ls", "List the symbols defined by a library crate"),

branches/incoming/src/librustc/driver/session.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ pub struct options {
124124
jit: bool,
125125
output_type: back::link::output_type,
126126
addl_lib_search_paths: ~[Path],
127-
linker: Option<~str>,
128127
linker_args: ~[~str],
129128
maybe_sysroot: Option<Path>,
130129
target_triple: ~str,
@@ -303,8 +302,7 @@ pub fn basic_options() -> @options {
303302
jit: false,
304303
output_type: link::output_type_exe,
305304
addl_lib_search_paths: ~[],
306-
linker: None,
307-
linker_args: ~[],
305+
linker_args:~[],
308306
maybe_sysroot: None,
309307
target_triple: host_triple(),
310308
target_feature: ~"",

0 commit comments

Comments
 (0)