Skip to content

Commit 52bcc50

Browse files
committed
---
yaml --- r: 135393 b: refs/heads/snap-stage3 c: 5615ace h: refs/heads/master i: 135391: 24eada8 v: v3
1 parent 0ce78e2 commit 52bcc50

File tree

836 files changed

+24987
-19642
lines changed

Some content is hidden

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

836 files changed

+24987
-19642
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 2a11f2b5440444181e20c3b4f2b0a01eb9fec385
4+
refs/heads/snap-stage3: 5615aceff0f44f7ac6ec0c51800b162804e22453
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/.gitmodules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
path = src/llvm
33
url = https://github.com/rust-lang/llvm.git
44
branch = master
5+
[submodule "src/libuv"]
6+
path = src/libuv
7+
url = https://github.com/rust-lang/libuv.git
8+
branch = master
9+
[submodule "src/gyp"]
10+
path = src/gyp
11+
url = https://github.com/rust-lang/gyp.git
512
[submodule "src/compiler-rt"]
613
path = src/compiler-rt
714
url = https://github.com/rust-lang/compiler-rt.git

branches/snap-stage3/.travis.yml

Lines changed: 49 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,60 @@
11
# Use something that's not 'ruby' so we don't set up things like
2-
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
3-
# downloads a rust/cargo snapshot, which we don't really want for building rust.
2+
# RVM/bundler/ruby and whatnot. Right now 'rust' isn't a language on travis and
3+
# it treats unknown languages as ruby-like I believe.
44
language: c
55

6-
# Make sure we've got an up-to-date g++ compiler to get past the LLVM configure
7-
# script.
6+
# Before we start doing anything, install a stock LLVM
87
install:
9-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
8+
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main' >> /etc/apt/sources.list"
9+
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
10+
- sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main' >> /etc/apt/sources.list"
11+
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
1012
- sudo apt-get update -qq
11-
- sudo apt-get install g++-4.7
13+
- sudo apt-get install -qq --force-yes -y llvm-$LLVM_VERSION
14+
llvm-${LLVM_VERSION}-dev clang-$LLVM_VERSION lldb-$LLVM_VERSION
1215

13-
# The test suite is in general way too stressful for travis, especially in
14-
# terms of time limit and reliability. In the past we've tried to scale things
15-
# back to only build the stage1 compiler and run a subset of tests, but this
16-
# didn't end up panning out very well.
16+
17+
# All of the llvm tools are suffixed with "-$VERS" which we don't want, so
18+
# symlink them all into a local directory and just use that
1719
#
18-
# As a result, we're just using travis to run `make tidy` now. It'll help
19-
# everyone find out about their trailing spaces early on!
20+
# FIXME: this shouldn't update the src/llvm sub-repo, that takes about a minute
21+
# it's gotta download so much stuff.
2022
before_script:
21-
- ./configure
22-
script:
23-
- make tidy
23+
- mkdir -p local-llvm/bin
24+
- ln -nsf /usr/bin/llvm-config-$LLVM_VERSION local-llvm/bin/llvm-config
25+
- ln -nsf /usr/bin/llvm-mc-$LLVM_VERSION local-llvm/bin/llvm-mc
26+
- ln -nsf /usr/bin/llvm-as-$LLVM_VERSION local-llvm/bin/llvm-as
27+
- ln -nsf /usr/bin/llvm-dis-$LLVM_VERSION local-llvm/bin/llvm-dis
28+
- ln -nsf /usr/bin/llc-$LLVM_VERSION local-llvm/bin/llc
29+
- ln -nsf /usr/include/llvm-$LLVM_VERSION local-llvm/include
30+
- ./configure --disable-optimize-tests --llvm-root=`pwd`/local-llvm
31+
--enable-fast-make --enable-clang
32+
33+
# Tidy everything up first, then build a few things, and then run a few tests.
34+
# Note that this is meant to run in a "fairly small" amount of time, so this
35+
# isn't exhaustive at all.
36+
#
37+
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
38+
# everything in one large command instead of multiple commands.
39+
script: |
40+
if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then
41+
if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
42+
fi &&
43+
make tidy &&
44+
make -j4 rustc-stage1 RUSTFLAGS='-Z time-passes' &&
45+
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail check-stage1-doc
46+
47+
env:
48+
global:
49+
- NO_BENCH=1
50+
matrix:
51+
- LLVM_VERSION=3.3
52+
- LLVM_VERSION=3.4
53+
54+
# We track this ourselves, and in theory we don't have to update the LLVM repo
55+
# (but sadly we do right now anyway).
56+
git:
57+
submodules: false
2458

2559
notifications:
2660
email: false

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ If you're just reporting a bug, please see:
44

55
http://doc.rust-lang.org/complement-bugreport.html
66

7-
## Submitting an issue
8-
9-
Please submit issues here for bug reports or implementation details. For feature
10-
requests, language changes, or major changes to the libraries, please submit an
11-
issue against the [RFCs repository](https://github.com/rust-lang/rfcs).
12-
137
## Pull request procedure
148

159
Pull requests should be targeted at Rust's `master` branch.

branches/snap-stage3/COPYRIGHT

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,41 @@ their own copyright notices and license terms:
213213
as the Rust compiler or runtime libraries themselves).
214214

215215

216+
* The libuv asynchronous I/O library. Code for this package
217+
is found in the src/libuv directory, within this
218+
distribution. This package is redistributed under the
219+
following terms, as noted in its source:
220+
221+
Copyright Joyent, Inc. and other Node contributors. All
222+
rights reserved. Permission is hereby granted, free of
223+
charge, to any person obtaining a copy of this software
224+
and associated documentation files (the "Software"), to
225+
deal in the Software without restriction, including
226+
without limitation the rights to use, copy, modify,
227+
merge, publish, distribute, sublicense, and/or sell
228+
copies of the Software, and to permit persons to whom
229+
the Software is furnished to do so, subject to the
230+
following conditions:
231+
232+
The above copyright notice and this permission notice
233+
shall be included in all copies or substantial portions
234+
of the Software.
235+
236+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
237+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
238+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
239+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
240+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
241+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
242+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
243+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
244+
DEALINGS IN THE SOFTWARE.
245+
246+
247+
* Additional libraries included in libuv carry separate
248+
BSD-compatible licenses. See src/libuv/LICENSE for
249+
details.
250+
216251
* The src/rt/miniz.c file, carrying an implementation of
217252
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
218253
<[email protected]>. All uses of this file are

branches/snap-stage3/configure

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ case $CFG_OSTYPE in
306306
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
307307
# MINGW64 on x86_64.
308308
CFG_CPUTYPE=i686
309-
CFG_OSTYPE=w64-mingw32
309+
CFG_OSTYPE=pc-mingw32
310310
if [ "$MSYSTEM" = MINGW64 ]
311311
then
312312
CFG_CPUTYPE=x86_64
@@ -438,6 +438,7 @@ valopt prefix "/usr/local" "set installation prefix"
438438
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
439439
valopt llvm-root "" "set LLVM root"
440440
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
441+
valopt libuv-root "" "set directory where libuv.a is located"
441442
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
442443
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
443444

@@ -452,12 +453,12 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
452453
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
453454
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
454455

455-
valopt release-channel "dev" "the name of the release channel to build"
456+
valopt release-channel "source" "the name of the release channel to build"
456457

457458
# On windows we just store the libraries in the bin directory because
458459
# there's no rpath. This is where the build system itself puts libraries;
459460
# --libdir is used to configure the installation directory.
460-
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
461+
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
461462
CFG_LIBDIR_RELATIVE=lib
462463
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
463464
then
@@ -476,18 +477,24 @@ fi
476477
step_msg "validating $CFG_SELF args"
477478
validate_opt
478479

480+
# Temporarily support the old windows triples while the bots make the transition
481+
# XXX Remove me
482+
CFG_BUILD=`echo "${CFG_BUILD}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
483+
CFG_HOST=`echo "${CFG_HOST}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
484+
CFG_TARGET=`echo "${CFG_TARGET}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
485+
479486
# Validate the release channel
480487
case "$CFG_RELEASE_CHANNEL" in
481-
(dev | nightly | beta | stable)
488+
(source | nightly | beta | stable)
482489
;;
483490
(*)
484-
err "release channel must be 'dev', 'nightly', 'beta' or 'stable'"
491+
err "release channel must be 'source', 'nightly', 'beta' or 'stable'"
485492
;;
486493
esac
487494

488495
# Continue supporting the old --enable-nightly flag to transition the bots
489496
# XXX Remove me
490-
if [ ! -z "$CFG_ENABLE_NIGHTLY" ]
497+
if [ $CFG_ENABLE_NIGHTLY -eq 1 ]
491498
then
492499
CFG_RELEASE_CHANNEL=nightly
493500
putvar CFG_RELEASE_CHANNEL
@@ -868,6 +875,10 @@ do
868875
do
869876
make_dir $t/rt/stage$s
870877
make_dir $t/rt/jemalloc
878+
make_dir $t/rt/libuv
879+
make_dir $t/rt/libuv/src/ares
880+
make_dir $t/rt/libuv/src/eio
881+
make_dir $t/rt/libuv/src/ev
871882
for i in \
872883
isaac sync test \
873884
arch/i386 arch/x86_64 arch/arm arch/mips \
@@ -921,7 +932,6 @@ do
921932
make_dir $h/test/doc-guide-pointers
922933
make_dir $h/test/doc-guide-container
923934
make_dir $h/test/doc-guide-tasks
924-
make_dir $h/test/doc-guide-plugin
925935
make_dir $h/test/doc-rust
926936
done
927937

@@ -948,6 +958,10 @@ then
948958
msg "git: submodule deinit src/jemalloc"
949959
"${CFG_GIT}" submodule deinit src/jemalloc
950960
fi
961+
if [ ! -z "${CFG_LIBUV_ROOT}" ]; then
962+
msg "git: submodule deinit src/libuv"
963+
"${CFG_GIT}" submodule deinit src/libuv
964+
fi
951965

952966
msg "git: submodule update"
953967
"${CFG_GIT}" submodule update
@@ -1208,6 +1222,7 @@ putvar CFG_MINGW32_CROSS_PATH
12081222
putvar CFG_MANDIR
12091223
putvar CFG_DISABLE_INJECT_STD_VERSION
12101224
putvar CFG_JEMALLOC_ROOT
1225+
putvar CFG_LIBUV_ROOT
12111226
putvar CFG_DISABLE_JEMALLOC
12121227

12131228
# Avoid spurious warnings from clang by feeding it original source on

branches/snap-stage3/mk/crates.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std green native flate arena glob term semver \
52+
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
5454
url log regex graphviz core rbml rlibc alloc debug rustrt \
5555
unicode
@@ -59,7 +59,6 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
62-
DEPS_libc := core
6362
DEPS_rlibc := core
6463
DEPS_unicode := core
6564
DEPS_alloc := core libc native:jemalloc
@@ -69,8 +68,9 @@ DEPS_std := core libc rand alloc collections rustrt sync unicode \
6968
native:rust_builtin native:backtrace
7069
DEPS_graphviz := std
7170
DEPS_green := std native:context_switch
71+
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug arena libc
73+
DEPS_syntax := std term serialize log fmt_macros debug arena
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std
@@ -101,7 +101,7 @@ DEPS_regex := std
101101
DEPS_regex_macros = rustc syntax std regex
102102
DEPS_fmt_macros = std
103103

104-
TOOL_DEPS_compiletest := test getopts
104+
TOOL_DEPS_compiletest := test green rustuv getopts
105105
TOOL_DEPS_rustdoc := rustdoc native
106106
TOOL_DEPS_rustc := rustc native
107107
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs

branches/snap-stage3/mk/ctags.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,21 @@
1616
.PHONY: TAGS.emacs TAGS.vi
1717

1818
# This is using a blacklist approach, probably more durable than a whitelist.
19-
# We exclude: external dependencies (llvm, rt/{msvc,sundown,vg}),
19+
# We exclude: external dependencies (llvm, libuv, gyp, rt/{msvc,sundown,vg}),
2020
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
2121
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
22+
$(patsubst ${CFG_SRC_DIR}src/libuv,, \
2223
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
2324
$(patsubst ${CFG_SRC_DIR}src/test,, \
25+
$(patsubst ${CFG_SRC_DIR}src/gyp,, \
2426
$(patsubst ${CFG_SRC_DIR}src/etc,, \
2527
$(patsubst ${CFG_SRC_DIR}src/rt,, \
2628
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \
2729
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,, \
2830
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,, \
2931
$(patsubst ${CFG_SRC_DIR}src/rt/vg,, \
3032
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*) \
31-
)))))))))
33+
)))))))))))
3234
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=-javascript --recurse ${CTAGS_LOCATIONS}
3335
# We could use `--languages=Rust`, but there is value in producing tags for the
3436
# C++ parts of the code base too (at the time of writing, those are .h and .cpp

branches/snap-stage3/mk/dist.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3535

3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

38-
PKG_GITMODULES := $(S)src/llvm $(S)src/compiler-rt \
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
3939
$(S)src/rt/hoedown $(S)src/jemalloc
4040
PKG_FILES := \
4141
$(S)COPYRIGHT \
@@ -283,7 +283,7 @@ distcheck-docs: dist-docs
283283

284284
ifdef CFG_WINDOWSY_$(CFG_BUILD)
285285

286-
dist: dist-win dist-tar-bins
286+
dist: dist-win
287287

288288
distcheck: distcheck-win
289289
$(Q)rm -Rf tmp/distcheck

branches/snap-stage3/mk/docs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
######################################################################
2828
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
30-
guide-runtime guide-plugin complement-bugreport \
30+
guide-runtime complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq rust \
32-
rustdoc guide-unsafe guide-strings reference
32+
rustdoc guide-unsafe guide-strings
3333

34-
PDF_DOCS := guide reference
34+
PDF_DOCS := guide rust
3535

3636
RUSTDOC_DEPS_rust := doc/full-toc.inc
3737
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc

branches/snap-stage3/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ ifeq ($(CFG_RELEASE_CHANNEL),nightly)
3535
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
3636
CFG_PACKAGE_VERS=nightly
3737
endif
38-
ifeq ($(CFG_RELEASE_CHANNEL),dev)
39-
CFG_RELEASE=$(CFG_RELEASE_NUM)-dev
40-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
38+
ifeq ($(CFG_RELEASE_CHANNEL),source)
39+
CFG_RELEASE=$(CFG_RELEASE_NUM)-pre
40+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-pre
4141
endif
4242

4343
# The name of the package to use for creating tarballs, installers etc.

0 commit comments

Comments
 (0)