Skip to content

Commit 0497993

Browse files
committed
---
yaml --- r: 152597 b: refs/heads/try2 c: feb294c h: refs/heads/master i: 152595: 2d9ed80 v: v3
1 parent d2bedd1 commit 0497993

File tree

665 files changed

+14928
-9996
lines changed

Some content is hidden

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

665 files changed

+14928
-9996
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: e5baf1d94a6c2c41fa4307c4dd3105afe5924a71
8+
refs/heads/try2: feb294ca1125bda576552a71c11c44a820ef8b99
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ before_script:
2727
- ln -nsf /usr/bin/llvm-dis-$LLVM_VERSION local-llvm/bin/llvm-dis
2828
- ln -nsf /usr/bin/llc-$LLVM_VERSION local-llvm/bin/llc
2929
- ln -nsf /usr/include/llvm-$LLVM_VERSION local-llvm/include
30-
- ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm --enable-fast-make --enable-clang
30+
- ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm
31+
--enable-fast-make --enable-clang
3132

3233
# Tidy everything up first, then build a few things, and then run a few tests.
3334
# Note that this is meant to run in a "fairly small" amount of time, so this

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/mozilla/rust/wiki/Note-style-guide) and
23+
[style](https://github.com/rust-lang/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/mozilla/rust/wiki/Note-testsuite))
29+
[Note-testsuite](https://github.com/rust-lang/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/mozilla/rust/wiki/Note-development-policy).
44+
[Note-development-policy](https://github.com/rust-lang/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/mozilla/rust/wiki/Note-build-system
102-
# [2]: https://github.com/mozilla/rust/wiki/Note-testsuite
101+
# [1]: https://github.com/rust-lang/rust/wiki/Note-build-system
102+
# [2]: https://github.com/rust-lang/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/mozilla/rust/wiki/Note-getting-started-developing-Rust
18-
[win-wiki]: https://github.com/mozilla/rust/wiki/Using-Rust-on-Windows
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
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/mozilla/rust.git
41+
$ git clone https://github.com/rust-lang/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/mozilla/rust
61+
[repo]: https://github.com/rust-lang/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/mozilla/rust/wiki
86+
[wiki]: https://github.com/rust-lang/rust/wiki
8787

8888
## License
8989

branches/try2/configure

Lines changed: 25 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -416,15 +416,17 @@ opt mingw-cross 0 "cross-compile for win32 using mingw"
416416
opt clang 0 "prefer clang to gcc for building the runtime"
417417
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
418418
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
419-
opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
420419
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
421420
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
422421
opt rpath 1 "build rpaths into rustc itself"
423422
opt nightly 0 "build nightly packages"
424423
opt verify-install 1 "verify installed binaries work"
424+
opt jemalloc 1 "build liballoc with jemalloc"
425425
valopt prefix "/usr/local" "set installation prefix"
426426
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
427427
valopt llvm-root "" "set LLVM root"
428+
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
429+
valopt libuv-root "" "set directory where libuv.a is located"
428430
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
429431
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
430432

@@ -516,12 +518,6 @@ then
516518
fi
517519
fi
518520

519-
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
520-
then
521-
probe CFG_PAXCTL paxctl /sbin/paxctl
522-
probe CFG_ZCAT zcat
523-
fi
524-
525521
step_msg "looking for target specific programs"
526522

527523
probe CFG_ADB adb
@@ -544,51 +540,6 @@ then
544540
fi
545541
fi
546542

547-
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
548-
then
549-
if [ ! -z "$CFG_ENABLE_PAX_FLAGS" -a -z "$CFG_PAXCTL" ]
550-
then
551-
err "enabled PaX markings but no paxctl binary found"
552-
fi
553-
554-
if [ -z "$CFG_DISABLE_PAX_FLAGS" ]
555-
then
556-
# GRSecurity/PaX detection. This can be very flaky.
557-
GRSEC_DETECTED=
558-
559-
# /dev/grsec only exists if CONFIG_GRKERNSEC_NO_RBAC is not set.
560-
# /proc/sys/kernel/grsecurity is not available if ÇONFIG_GRKERNSEC_SYSCTL is not set.
561-
if [ -e /dev/grsec -o -d /proc/sys/kernel/grsecurity ]
562-
then
563-
GRSEC_DETECTED=1
564-
# /proc/config.gz is normally only available to root, and only if CONFIG_IKCONFIG_PROC has been set.
565-
elif [ -r /proc/config.gz -a ! -z "$CFG_ZCAT" ]
566-
then
567-
if "$CFG_ZCAT" /proc/config.gz | grep --quiet "CONFIG_GRKERNSEC=y"
568-
then
569-
GRSEC_DETECTED=1
570-
fi
571-
# Flaky.
572-
elif grep --quiet grsec /proc/version
573-
then
574-
GRSEC_DETECTED=1
575-
fi
576-
577-
if [ ! -z "$GRSEC_DETECTED" ]
578-
then
579-
step_msg "GRSecurity: yes"
580-
if [ ! -z "$CFG_PAXCTL" ]
581-
then
582-
CFG_ENABLE_PAX_FLAGS=1
583-
else
584-
warn "GRSecurity kernel detected but no paxctl binary found: not setting CFG_ENABLE_PAX_FLAGS"
585-
fi
586-
else
587-
step_msg "GRSecurity: no"
588-
fi
589-
fi
590-
fi
591-
592543
BIN_SUF=
593544
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
594545
then
@@ -940,16 +891,33 @@ then
940891
msg "git: submodule sync"
941892
"${CFG_GIT}" submodule sync
942893

894+
msg "git: submodule init"
895+
"${CFG_GIT}" submodule init
896+
897+
# Disable submodules that we're not using
898+
if [ ! -z "${CFG_LLVM_ROOT}" ]; then
899+
msg "git: submodule deinit src/llvm"
900+
"${CFG_GIT}" submodule deinit src/llvm
901+
fi
902+
if [ ! -z "${CFG_JEMALLOC_ROOT}" ]; then
903+
msg "git: submodule deinit src/jemalloc"
904+
"${CFG_GIT}" submodule deinit src/jemalloc
905+
fi
906+
if [ ! -z "${CFG_LIBUV_ROOT}" ]; then
907+
msg "git: submodule deinit src/libuv"
908+
"${CFG_GIT}" submodule deinit src/libuv
909+
fi
910+
943911
msg "git: submodule update"
944-
"${CFG_GIT}" submodule update --init
912+
"${CFG_GIT}" submodule update
945913
need_ok "git failed"
946914

947915
msg "git: submodule foreach sync"
948916
"${CFG_GIT}" submodule foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
949917
need_ok "git failed"
950918

951919
msg "git: submodule foreach update"
952-
"${CFG_GIT}" submodule update --init --recursive
920+
"${CFG_GIT}" submodule update --recursive
953921
need_ok "git failed"
954922

955923
# NB: this is just for the sake of getting the submodule SHA1 values
@@ -1198,6 +1166,9 @@ putvar CFG_ANDROID_CROSS_PATH
11981166
putvar CFG_MINGW32_CROSS_PATH
11991167
putvar CFG_MANDIR
12001168
putvar CFG_DISABLE_INJECT_STD_VERSION
1169+
putvar CFG_JEMALLOC_ROOT
1170+
putvar CFG_LIBUV_ROOT
1171+
putvar CFG_DISABLE_JEMALLOC
12011172

12021173
# Avoid spurious warnings from clang by feeding it original source on
12031174
# 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/mozilla/rust/issues\fR> for issues.
187+
See <\fBhttps://github.com/rust-lang/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/mozilla/rust/issues\fR> for issues.
90+
See <\fBhttps://github.com/rust-lang/rust/issues\fR> for issues.
9191

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

branches/try2/mk/crates.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ DEPS_rlibc :=
6161
DEPS_alloc := core libc native:jemalloc
6262
DEPS_debug := std
6363
DEPS_rustrt := alloc core libc collections native:rustrt_native
64-
DEPS_std := core libc rand alloc collections rustrt \
64+
DEPS_std := core libc rand alloc collections rustrt sync \
6565
native:rust_builtin native:backtrace
6666
DEPS_graphviz := std
6767
DEPS_green := std native:context_switch
6868
DEPS_rustuv := std native:uv native:uv_support
6969
DEPS_native := std
7070
DEPS_syntax := std term serialize log fmt_macros debug
71-
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
71+
DEPS_rustc := syntax native:rustllvm flate arena serialize getopts \
7272
time log graphviz debug
73-
DEPS_rustdoc := rustc native:hoedown serialize sync getopts \
73+
DEPS_rustdoc := rustc native:hoedown serialize getopts \
7474
test time debug
7575
DEPS_flate := std native:miniz
7676
DEPS_arena := std
@@ -80,17 +80,17 @@ DEPS_serialize := std log
8080
DEPS_term := std log
8181
DEPS_semver := std
8282
DEPS_uuid := std serialize
83-
DEPS_sync := std alloc
83+
DEPS_sync := core alloc rustrt collections
8484
DEPS_getopts := std
8585
DEPS_collections := core alloc
8686
DEPS_fourcc := rustc syntax std
8787
DEPS_hexfloat := rustc syntax std
8888
DEPS_num := std
8989
DEPS_test := std getopts serialize term time regex native:rust_test_helpers
90-
DEPS_time := std serialize sync
90+
DEPS_time := std serialize
9191
DEPS_rand := core
9292
DEPS_url := std
93-
DEPS_log := std sync
93+
DEPS_log := std
9494
DEPS_regex := std
9595
DEPS_regex_macros = rustc syntax std regex
9696
DEPS_fmt_macros = std

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_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(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))
386386
TARGET_RPATH_VAR$(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))
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))
388388

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

0 commit comments

Comments
 (0)