Skip to content

Commit 2ca6d90

Browse files
author
Pawel Olzacki
committed
---
yaml --- r: 152772 b: refs/heads/try2 c: 34a384a h: refs/heads/master v: v3
1 parent 948969e commit 2ca6d90

File tree

441 files changed

+6709
-10681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+6709
-10681
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 71fe44def9676d519f5ce5d7304e581a42cf2c70
8+
refs/heads/try2: 34a384a128d9630679f9c90bb27eaa0822e5b798
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ please do two things:
2020

2121
Pull requests will be treated as "review requests", and we will give
2222
feedback we expect to see corrected on
23-
[style](https://github.com/rust-lang/rust/wiki/Note-style-guide) and
23+
[style](https://github.com/mozilla/rust/wiki/Note-style-guide) and
2424
substance before pulling. Changes contributed via pull request should
2525
focus on a single issue at a time, like any other. We will not accept
2626
pull-requests that try to "sneak" unrelated changes in.
2727

2828
Normally, all pull requests must include regression tests (see
29-
[Note-testsuite](https://github.com/rust-lang/rust/wiki/Note-testsuite))
29+
[Note-testsuite](https://github.com/mozilla/rust/wiki/Note-testsuite))
3030
that test your change. Occasionally, a change will be very difficult
3131
to test for. In those cases, please include a note in your commit
3232
message explaining why.
@@ -41,4 +41,4 @@ example, if it's 2014, and you change a Rust file that was created in
4141
```
4242

4343
For more details, please refer to
44-
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).
44+
[Note-development-policy](https://github.com/mozilla/rust/wiki/Note-development-policy).

branches/try2/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
# This is hardly all there is to know of The Rust Build System's
9999
# mysteries. The tale continues on the wiki[1][2].
100100
#
101-
# [1]: https://github.com/rust-lang/rust/wiki/Note-build-system
102-
# [2]: https://github.com/rust-lang/rust/wiki/Note-testsuite
101+
# [1]: https://github.com/mozilla/rust/wiki/Note-build-system
102+
# [2]: https://github.com/mozilla/rust/wiki/Note-testsuite
103103
#
104104
# If you really feel like getting your hands dirty, then:
105105
#

branches/try2/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ documentation.
1414
1515
[installer]: http://www.rust-lang.org/install.html
1616
[tutorial]: http://doc.rust-lang.org/tutorial.html
17-
[wiki-start]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
18-
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
17+
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
18+
[win-wiki]: https://github.com/mozilla/rust/wiki/Using-Rust-on-Windows
1919

2020
## Building from Source
2121

@@ -38,7 +38,7 @@ documentation.
3838

3939
Or to build from the [repo] do:
4040

41-
$ git clone https://github.com/rust-lang/rust.git
41+
$ git clone https://github.com/mozilla/rust.git
4242
$ cd rust
4343

4444
Now that you have Rust's source code, you can configure and build it:
@@ -58,7 +58,7 @@ documentation.
5858
3. Read the [tutorial].
5959
4. Enjoy!
6060

61-
[repo]: https://github.com/rust-lang/rust
61+
[repo]: https://github.com/mozilla/rust
6262
[tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
6363
[tutorial]: http://doc.rust-lang.org/tutorial.html
6464

@@ -83,7 +83,7 @@ swap, it will take a very long time to build.
8383

8484
There is a lot more documentation in the [wiki].
8585

86-
[wiki]: https://github.com/rust-lang/rust/wiki
86+
[wiki]: https://github.com/mozilla/rust/wiki
8787

8888
## License
8989

branches/try2/configure

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
421421
opt rpath 1 "build rpaths into rustc itself"
422422
opt nightly 0 "build nightly packages"
423423
opt verify-install 1 "verify installed binaries work"
424-
opt jemalloc 1 "build liballoc with jemalloc"
425424
valopt prefix "/usr/local" "set installation prefix"
426425
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
427426
valopt llvm-root "" "set LLVM root"
@@ -1168,7 +1167,6 @@ putvar CFG_MANDIR
11681167
putvar CFG_DISABLE_INJECT_STD_VERSION
11691168
putvar CFG_JEMALLOC_ROOT
11701169
putvar CFG_LIBUV_ROOT
1171-
putvar CFG_DISABLE_JEMALLOC
11721170

11731171
# Avoid spurious warnings from clang by feeding it original source on
11741172
# ccache-miss rather than preprocessed input.

branches/try2/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ To build an executable with debug info:
184184
rustdoc
185185

186186
.SH "BUGS"
187-
See <\fBhttps://github.com/rust-lang/rust/issues\fR> for issues.
187+
See <\fBhttps://github.com/mozilla/rust/issues\fR> for issues.
188188

189189
.SH "AUTHOR"
190190
See \fBAUTHORS.txt\fR in the Rust source distribution.

branches/try2/man/rustdoc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The generated HTML can be viewed with any standard web browser.
8787
rustc
8888

8989
.SH "BUGS"
90-
See <\fBhttps://github.com/rust-lang/rust/issues\fR> for issues.
90+
See <\fBhttps://github.com/mozilla/rust/issues\fR> for issues.
9191

9292
.SH "AUTHOR"
9393
See \fBAUTHORS.txt\fR in the Rust source distribution.

branches/try2/mk/main.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@ endef
360360
# contains spaces which confuse make.
361361
# * `LD_LIBRARY_PATH_ENV_HOSTDIR`: the entry to add to lookup path for the host
362362
# * `LD_LIBRARY_PATH_ENV_TARGETDIR`: the entry to add to lookup path for target
363-
#
363+
#
364364
# Below that, HOST_RPATH_VAR and TARGET_RPATH_VAR are defined in terms of the
365365
# above settings.
366-
#
366+
#
367367
define SREQ_CMDS
368368

369369
ifeq ($$(OSTYPE_$(3)),apple-darwin)
@@ -382,9 +382,9 @@ LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3) := \
382382
$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))
383383

384384
HOST_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
385-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3)):$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))
385+
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))
386386
TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
387-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3)):$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))
387+
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))
388388

389389
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(HOST_RPATH_VAR$(1)_T_$(2)_H_$(3))
390390

branches/try2/mk/platform.mk

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,36 @@ CFG_RUN_TARG_arm-unknown-linux-gnueabi=$(call CFG_RUN_arm-unknown-linux-gnueabi,
374374
RUSTC_FLAGS_arm-unknown-linux-gnueabi :=
375375
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
376376

377+
# mipsel-linux configuration
378+
CC_mipsel-linux=mipsel-linux-gcc
379+
CXX_mipsel-linux=mipsel-linux-g++
380+
CPP_mipsel-linux=mipsel-linux-gcc
381+
AR_mipsel-linux=mipsel-linux-ar
382+
CFG_LIB_NAME_mipsel-linux=lib$(1).so
383+
CFG_STATIC_LIB_NAME_mipsel-linux=lib$(1).a
384+
CFG_LIB_GLOB_mipsel-linux=lib$(1)-*.so
385+
CFG_LIB_DSYM_GLOB_mipsel-linux=lib$(1)-*.dylib.dSYM
386+
CFG_CFLAGS_mipsel-linux := -mips32 -mabi=32 $(CFLAGS)
387+
CFG_GCCISH_CFLAGS_mipsel-linux := -Wall -g -fPIC -mips32 -mabi=32 $(CFLAGS)
388+
CFG_GCCISH_CXXFLAGS_mipsel-linux := -fno-rtti $(CXXFLAGS)
389+
CFG_GCCISH_LINK_FLAGS_mipsel-linux := -shared -fPIC -g -mips32
390+
CFG_GCCISH_DEF_FLAG_mipsel-linux := -Wl,--export-dynamic,--dynamic-list=
391+
CFG_GCCISH_PRE_LIB_FLAGS_mipsel-linux := -Wl,-whole-archive
392+
CFG_GCCISH_POST_LIB_FLAGS_mipsel-linux := -Wl,-no-whole-archive
393+
CFG_DEF_SUFFIX_mipsel-linux := .linux.def
394+
CFG_LLC_FLAGS_mipsel-linux :=
395+
CFG_INSTALL_NAME_mipsel-linux =
396+
CFG_LIBUV_LINK_FLAGS_mipsel-linux =
397+
CFG_EXE_SUFFIX_mipsel-linux :=
398+
CFG_WINDOWSY_mipsel-linux :=
399+
CFG_UNIXY_mipsel-linux := 1
400+
CFG_PATH_MUNGE_mipsel-linux := true
401+
CFG_LDPATH_mipsel-linux :=
402+
CFG_RUN_mipsel-linux=
403+
CFG_RUN_TARG_mipsel-linux=
404+
RUSTC_FLAGS_mipsel-linux := -C target-cpu=mips32 -C target-feature="+mips32,+o32"
405+
406+
377407
# mips-unknown-linux-gnu configuration
378408
CC_mips-unknown-linux-gnu=mips-linux-gnu-gcc
379409
CXX_mips-unknown-linux-gnu=mips-linux-gnu-g++
@@ -612,7 +642,7 @@ define CFG_MAKE_TOOLCHAIN
612642
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
613643
$$(call CFG_INSTALL_NAME_$(1),$$(4))
614644

615-
ifeq ($$(findstring $(HOST_$(1)),arm mips),)
645+
ifeq ($$(findstring $(HOST_$(1)),arm mips mipsel),)
616646

617647
# We're using llvm-mc as our assembler because it supports
618648
# .cfi pseudo-ops on mac

branches/try2/mk/rt.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ $$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
306306
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1)) $$(CFG_JEMALLOC_CFLAGS_$(1)) -g1"
307307
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
308308

309-
ifeq ($$(CFG_DISABLE_JEMALLOC),)
310-
RUSTFLAGS_alloc := --cfg jemalloc
311309
ifeq ($(1),$$(CFG_BUILD))
312310
ifneq ($$(CFG_JEMALLOC_ROOT),)
313311
$$(JEMALLOC_LIB_$(1)): $$(CFG_JEMALLOC_ROOT)/libjemalloc_pic.a
@@ -321,10 +319,6 @@ else
321319
$$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_LOCAL_$(1))
322320
$$(Q)cp $$< $$@
323321
endif
324-
else
325-
$$(JEMALLOC_LIB_$(1)): $$(MKFILE_DEPS)
326-
$$(Q)touch $$@
327-
endif
328322

329323
################################################################################
330324
# compiler-rt

branches/try2/mk/target.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8484
-L "$$(RT_OUTPUT_DIR_$(2))" \
8585
-L "$$(LLVM_LIBDIR_$(2))" \
8686
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
87-
$$(RUSTFLAGS_$(4)) \
8887
--out-dir $$(@D) $$<
8988
@touch $$@
9089
$$(call LIST_ALL_OLD_GLOB_MATCHES,\

branches/try2/mk/tests.mk

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ endif
9191
define DEF_TARGET_COMMANDS
9292

9393
ifdef CFG_UNIXY_$(1)
94-
CFG_RUN_TEST_$(1)=$$(TARGET_RPATH_VAR$$(2)_T_$$(3)_H_$$(4)) \
95-
$$(call CFG_RUN_$(1),,$$(CFG_VALGRIND) $$(1))
94+
CFG_RUN_TEST_$(1)=$$(call CFG_RUN_$(1),,$$(CFG_VALGRIND) $$(1))
9695
endif
9796

9897
ifdef CFG_WINDOWSY_$(1)
@@ -106,13 +105,13 @@ ifdef CFG_WINDOWSY_$(1)
106105
$$(if $$(findstring stage3,$$(1)), \
107106
stage3/$$(CFG_LIBDIR_RELATIVE), \
108107
)))))/rustlib/$$(CFG_BUILD)/lib
109-
CFG_RUN_TEST_$(1)=$$(call CFG_RUN_$(1),$$(call CFG_TESTLIB_$(1),$$(1),$$(4)),$$(1))
108+
CFG_RUN_TEST_$(1)=$$(call CFG_RUN_$(1),$$(call CFG_TESTLIB_$(1),$$(1),$$(3)),$$(1))
110109
endif
111110

112111
# Run the compiletest runner itself under valgrind
113112
ifdef CTEST_VALGRIND
114113
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
115-
$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(3),$$(4))
114+
$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(2),$$(3))
116115
else
117116
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
118117
$$(call CFG_RUN_$$(CFG_BUILD),$$(TLIB$$(1)_T_$$(3)_H_$$(3)),$$(2))
@@ -376,8 +375,7 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
376375
@$$(call E, rustc: $$@)
377376
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test \
378377
-L "$$(RT_OUTPUT_DIR_$(2))" \
379-
-L "$$(LLVM_LIBDIR_$(2))" \
380-
$$(RUSTFLAGS_$(4))
378+
-L "$$(LLVM_LIBDIR_$(2))"
381379

382380
endef
383381

@@ -393,7 +391,7 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
393391
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
394392
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2))
395393
@$$(call E, run: $$<)
396-
$$(Q)$$(call CFG_RUN_TEST_$(2),$$<,$(1),$(2),$(3)) $$(TESTARGS) \
394+
$$(Q)$$(call CFG_RUN_TEST_$(2),$$<,$(2),$(3)) $$(TESTARGS) \
397395
--logfile $$(call TEST_LOG_FILE,$(1),$(2),$(3),$(4)) \
398396
$$(call CRATE_TEST_EXTRA_ARGS,$(1),$(2),$(3),$(4)) \
399397
&& touch $$@

branches/try2/src/compiler-rt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 62a4ca6055ad6fda8faf767b93b5736dcdfb7013
1+
Subproject commit 7b97b8468f0614072cf3299fa8c51e85f609316f

branches/try2/src/compiletest/procsrv.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,42 @@ use std::str;
1313
use std::io::process::{ProcessExit, Command, Process, ProcessOutput};
1414
use std::dynamic_lib::DynamicLibrary;
1515

16-
fn target_env(lib_path: &str, aux_path: Option<&str>) -> Vec<(String, String)> {
16+
fn target_env(lib_path: &str, prog: &str) -> Vec<(String, String)> {
17+
let prog = if cfg!(windows) {prog.slice_to(prog.len() - 4)} else {prog};
18+
let mut aux_path = prog.to_string();
19+
aux_path.push_str(".libaux");
20+
1721
// Need to be sure to put both the lib_path and the aux path in the dylib
1822
// search path for the child.
1923
let mut path = DynamicLibrary::search_path();
20-
match aux_path {
21-
Some(p) => path.insert(0, Path::new(p)),
22-
None => {}
23-
}
24+
path.insert(0, Path::new(aux_path));
2425
path.insert(0, Path::new(lib_path));
2526

2627
// Remove the previous dylib search path var
2728
let var = DynamicLibrary::envvar();
28-
let mut env: Vec<(String,String)> = os::env();
29+
let mut env: Vec<(String,String)> =
30+
os::env().move_iter().map(|(a,b)|(a.to_string(), b.to_string())).collect();
2931
match env.iter().position(|&(ref k, _)| k.as_slice() == var) {
3032
Some(i) => { env.remove(i); }
3133
None => {}
3234
}
3335

3436
// Add the new dylib search path var
3537
let newpath = DynamicLibrary::create_path(path.as_slice());
36-
let newpath = str::from_utf8(newpath.as_slice()).unwrap().to_string();
37-
env.push((var.to_string(), newpath));
38+
env.push((var.to_string(),
39+
str::from_utf8(newpath.as_slice()).unwrap().to_string()));
3840
return env;
3941
}
4042

4143
pub struct Result {pub status: ProcessExit, pub out: String, pub err: String}
4244

4345
pub fn run(lib_path: &str,
4446
prog: &str,
45-
aux_path: Option<&str>,
4647
args: &[String],
4748
env: Vec<(String, String)> ,
4849
input: Option<String>) -> Option<Result> {
4950

50-
let env = env.clone().append(target_env(lib_path, aux_path).as_slice());
51+
let env = env.clone().append(target_env(lib_path, prog).as_slice());
5152
match Command::new(prog).args(args).env(env.as_slice()).spawn() {
5253
Ok(mut process) => {
5354
for input in input.iter() {
@@ -68,12 +69,11 @@ pub fn run(lib_path: &str,
6869

6970
pub fn run_background(lib_path: &str,
7071
prog: &str,
71-
aux_path: Option<&str>,
7272
args: &[String],
7373
env: Vec<(String, String)> ,
7474
input: Option<String>) -> Option<Process> {
7575

76-
let env = env.clone().append(target_env(lib_path, aux_path).as_slice());
76+
let env = env.clone().append(target_env(lib_path, prog).as_slice());
7777
match Command::new(prog).args(args).env(env.as_slice()).spawn() {
7878
Ok(mut process) => {
7979
for input in input.iter() {

0 commit comments

Comments
 (0)