Skip to content

Commit 4c4cd89

Browse files
committed
---
yaml --- r: 36057 b: refs/heads/try2 c: 9aec7a3 h: refs/heads/master i: 36055: 38b49f2 v: v3
1 parent d345842 commit 4c4cd89

File tree

403 files changed

+11150
-10941
lines changed

Some content is hidden

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

403 files changed

+11150
-10941
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: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 9ee5fff4f16cfc3390bd69abbb46b0a68521667c
8+
refs/heads/try2: 9aec7a3e85c5b07923eab05d3ebe9d031bf258f3
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/AUTHORS.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Erick Tryzelaar <[email protected]>
4141
Erik Rose <[email protected]>
4242
Evan McClanahan <[email protected]>
4343
Francisco Souza <[email protected]>
44-
4544
Gareth Daniel Smith <[email protected]>
4645
Glenn Willen <[email protected]>
4746
Gonçalo Cabrita <[email protected]>
@@ -50,7 +49,6 @@ Grahame Bowland <[email protected]>
5049
Haitao Li <[email protected]>
5150
Ian D. Bollinger <[email protected]>
5251
Ivano Coppola <[email protected]>
53-
Jacob Harris Cryer Kragh <[email protected]>
5452
Jacob Parker <[email protected]>
5553
Jason Orendorff <[email protected]>
5654
Jed Davis <[email protected]>
@@ -73,9 +71,7 @@ Kevin Cantu <[email protected]>
7371
Lennart Kudling
7472
Lindsey Kuper <[email protected]>
7573
Luca Bruno <[email protected]>
76-
Luqman Aden <[email protected]>
7774
Magnus Auvinen <[email protected]>
78-
Mahmut Bulut <[email protected]>
7975
Margaret Meyerhofer <[email protected]>
8076
Marijn Haverbeke <[email protected]>
8177
Matt Brubeck <[email protected]>

branches/try2/Makefile.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ LIBSYNTAX_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,syntax)
132132

133133
# version-string calculation
134134
CFG_GIT_DIR := $(CFG_SRC_DIR).git
135-
CFG_RELEASE = 0.5
135+
CFG_RELEASE = 0.4
136136
CFG_VERSION = $(CFG_RELEASE)
137137

138138
ifneq ($(wildcard $(CFG_GIT)),)
@@ -144,9 +144,8 @@ ifneq ($(wildcard $(CFG_GIT_DIR)),)
144144
endif
145145
endif
146146

147-
ifdef CFG_ENABLE_VALGRIND
148-
$(info cfg: enabling valgrind (CFG_ENABLE_VALGRIND))
149-
else
147+
ifdef CFG_DISABLE_VALGRIND
148+
$(info cfg: disabling valgrind (CFG_DISABLE_VALGRIND))
150149
CFG_VALGRIND :=
151150
endif
152151
ifdef CFG_BAD_VALGRIND

branches/try2/README.md

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,52 @@ documentation.
66

77
## Installation
88

9-
The Rust compiler currently must be built from a [tarball], unless you
10-
are on Windows, in which case using the [installer][win-exe] is
11-
recommended.
9+
The Rust compiler is slightly unusual in that it is written in Rust and
10+
therefore must be built by a precompiled "snapshot" version of itself (made in
11+
an earlier state of development). As such, source builds require that:
1212

13-
Since the Rust compiler is written in Rust, it must be built by
14-
a precompiled "snapshot" version of itself (made in an earlier state
15-
of development). As such, source builds require a connection to
16-
the Internet, to fetch snapshots, and an OS that can execute the
17-
available snapshot binaries.
13+
* You are connected to the internet, to fetch snapshots.
1814

19-
Snapshot binaries are currently built and tested on several platforms:
15+
* You can at least execute snapshot binaries of one of the forms we offer
16+
them in. Currently we build and test snapshots on:
2017

21-
* Windows (7, Server 2008 R2), x86 only
22-
* Linux (various distributions), x86 and x86-64
23-
* OSX 10.6 ("Snow Leopard") or greater, x86 and x86-64
18+
* Windows (7, server 2008 r2) x86 only
19+
* Linux 2.6.x (various distributions) x86 and x86-64
20+
* OSX 10.6 ("Snow Leopard") or 10.7 ("Lion") x86 and x86-64
2421

25-
You may find that other platforms work, but these are our "tier 1"
26-
supported build environments that are most likely to work.
22+
You may find other platforms work, but these are our "tier 1" supported build
23+
environments that are most likely to work. Further platforms will be added to
24+
the list in the future via cross-compilation.
2725

28-
> ***Note:*** Windows users should read the detailed
29-
> [getting started][wiki-start] notes on the wiki. Even when using
30-
> the binary installer the Windows build requires a MinGW installation,
31-
> the precise details of which are not discussed here.
32-
33-
To build from source you will also need the following prerequisite
34-
packages:
26+
To build from source you will also need the following prerequisite packages:
3527

3628
* g++ 4.4 or clang++ 3.x
37-
* python 2.6 or later (but not 3.x)
29+
* python 2.6 or later
3830
* perl 5.0 or later
3931
* gnu make 3.81 or later
4032
* curl
4133

42-
Assuming you're on a relatively modern *nix system and have met the
43-
prerequisites, something along these lines should work.
34+
Assuming you're on a relatively modern Linux/OSX system and have met the
35+
prerequisites, something along these lines should work:
4436

45-
$ wget http://dl.rust-lang.org/dist/rust-0.4.tar.gz
4637
$ tar -xzf rust-0.4.tar.gz
4738
$ cd rust-0.4
4839
$ ./configure
4940
$ make && make install
5041

51-
You may need to use `sudo make install` if you do not normally have
52-
permission to modify the destination directory. The install locations
53-
can be adjusted by passing a `--prefix` argument to
54-
`configure`. Various other options are also supported, pass `--help`
55-
for more information on them.
42+
When complete, make install will place the following programs into
43+
/usr/local/bin:
44+
45+
* rustc, the Rust compiler
46+
* rustdoc, the API-documentation tool
47+
* cargo, the Rust package manager
5648

57-
When complete, `make install` will place several programs into
58-
`/usr/local/bin`: `rustc`, the Rust compiler; `rustdoc`, the
59-
API-documentation tool, and `cargo`, the Rust package manager.
49+
In addition to a manual page under /usr/local/share/man and a set of host and
50+
target libraries under /usr/local/lib/rustc.
6051

61-
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
62-
[tarball]: http://dl.rust-lang.org/dist/rust-0.4.tar.gz
63-
[win-exe]: http://dl.rust-lang.org/dist/rust-0.4-install.exe
52+
The install locations can be adjusted by passing a --prefix argument to
53+
configure. Various other options are also supported, pass --help for more
54+
information on them.
6455

6556

6657
## License

branches/try2/RELEASES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version 0.4 (October 2012)
22
--------------------------
33

4-
* ~2000 changes, numerous bugfixes
4+
* ~1500 changes, numerous bugfixes
55

66
* Syntax
77
* All keywords are now strict and may not be used as identifiers anywhere

branches/try2/configure

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ need_cmd cmp
187187
need_cmd mkdir
188188
need_cmd printf
189189
need_cmd cut
190-
need_cmd head
191190
need_cmd grep
192191
need_cmd xargs
193192
need_cmd cp
@@ -258,16 +257,6 @@ case $CFG_CPUTYPE in
258257
err "unknown CPU type: $CFG_CPUTYPE"
259258
esac
260259

261-
# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
262-
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]
263-
then
264-
file -L "$SHELL" | grep -q "x86[_-]64"
265-
if [ $? != 0 ]; then
266-
CFG_CPUTYPE=i686
267-
fi
268-
fi
269-
270-
271260
DEFAULT_HOST_TRIPLE="${CFG_CPUTYPE}-${CFG_OSTYPE}"
272261

273262
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
@@ -294,7 +283,7 @@ else
294283
fi
295284

296285
opt sharedstd 1 "build libstd as a shared library"
297-
opt valgrind 0 "run tests with valgrind (memcheck by default)"
286+
opt valgrind 1 "run tests with valgrind (memcheck by default)"
298287
opt helgrind 0 "run tests with helgrind instead of memcheck"
299288
opt docs 1 "build documentation"
300289
opt optimize 1 "build optimized rust code"
@@ -363,16 +352,11 @@ fi
363352

364353
if [ ! -z "$CFG_PANDOC" ]
365354
then
366-
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
367-
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
368-
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
369-
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
370-
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
371-
PV_MINOR=${PV_MINOR%%[.][0-9]*}
372-
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
355+
PV=$(pandoc --version | awk '/^pandoc/ {print $2}')
356+
if [ "$PV" \< "1.8" ]
373357
then
374-
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
375-
BAD_PANDOC=1
358+
step_msg "pandoc $PV is too old. disabling"
359+
BAD_PANDOC=1
376360
fi
377361
fi
378362

@@ -595,7 +579,7 @@ then
595579
need_ok "git failed"
596580

597581
msg "git: submodule foreach sync"
598-
"${CFG_GIT}" submodule --quiet foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
582+
"${CFG_GIT}" submodule --quiet foreach --recursive git submodule sync
599583
need_ok "git failed"
600584

601585
msg "git: submodule foreach update"

branches/try2/doc/lib/codemirror-rust.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CodeMirror.defineMode("rust", function() {
99
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
1010
"claim": "op", "extern": "ignore", "unsafe": "ignore", "import": "else-style",
1111
"export": "else-style", "copy": "op", "log": "op",
12-
"use": "op", "self": "atom", "pub": "atom", "priv": "atom"
12+
"use": "op", "self": "atom"
1313
};
1414
var typeKeywords = function() {
1515
var keywords = {"fn": "fn"};

0 commit comments

Comments
 (0)