Skip to content

Commit cc0f2c6

Browse files
committed
Merge remote-tracking branch 'original/incoming' into incoming
2 parents 9aec7a3 + 9ee5fff commit cc0f2c6

File tree

401 files changed

+10912
-10140
lines changed

Some content is hidden

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

401 files changed

+10912
-10140
lines changed

AUTHORS.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Erick Tryzelaar <[email protected]>
4141
Erik Rose <[email protected]>
4242
Evan McClanahan <[email protected]>
4343
Francisco Souza <[email protected]>
44+
4445
Gareth Daniel Smith <[email protected]>
4546
Glenn Willen <[email protected]>
4647
Gonçalo Cabrita <[email protected]>
@@ -49,6 +50,7 @@ Grahame Bowland <[email protected]>
4950
Haitao Li <[email protected]>
5051
Ian D. Bollinger <[email protected]>
5152
Ivano Coppola <[email protected]>
53+
Jacob Harris Cryer Kragh <[email protected]>
5254
Jacob Parker <[email protected]>
5355
Jason Orendorff <[email protected]>
5456
Jed Davis <[email protected]>
@@ -71,7 +73,9 @@ Kevin Cantu <[email protected]>
7173
Lennart Kudling
7274
Lindsey Kuper <[email protected]>
7375
Luca Bruno <[email protected]>
76+
Luqman Aden <[email protected]>
7477
Magnus Auvinen <[email protected]>
78+
Mahmut Bulut <[email protected]>
7579
Margaret Meyerhofer <[email protected]>
7680
Marijn Haverbeke <[email protected]>
7781
Matt Brubeck <[email protected]>

Makefile.in

Lines changed: 4 additions & 3 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.4
135+
CFG_RELEASE = 0.5
136136
CFG_VERSION = $(CFG_RELEASE)
137137

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

147-
ifdef CFG_DISABLE_VALGRIND
148-
$(info cfg: disabling valgrind (CFG_DISABLE_VALGRIND))
147+
ifdef CFG_ENABLE_VALGRIND
148+
$(info cfg: enabling valgrind (CFG_ENABLE_VALGRIND))
149+
else
149150
CFG_VALGRIND :=
150151
endif
151152
ifdef CFG_BAD_VALGRIND

README.md

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

77
## Installation
88

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:
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.
1212

13-
* You are connected to the internet, to fetch snapshots.
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.
1418

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:
19+
Snapshot binaries are currently built and tested on several platforms:
1720

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
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
2124

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.
25+
You may find that other platforms work, but these are our "tier 1"
26+
supported build environments that are most likely to work.
2527

26-
To build from source you will also need the following prerequisite packages:
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:
2735

2836
* g++ 4.4 or clang++ 3.x
29-
* python 2.6 or later
37+
* python 2.6 or later (but not 3.x)
3038
* perl 5.0 or later
3139
* gnu make 3.81 or later
3240
* curl
3341

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

45+
$ wget http://dl.rust-lang.org/dist/rust-0.4.tar.gz
3746
$ tar -xzf rust-0.4.tar.gz
3847
$ cd rust-0.4
3948
$ ./configure
4049
$ make && make install
4150

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
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.
4856

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.
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.
5160

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.
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
5564

5665

5766
## License

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-
* ~1500 changes, numerous bugfixes
4+
* ~2000 changes, numerous bugfixes
55

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

configure

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ need_cmd cmp
187187
need_cmd mkdir
188188
need_cmd printf
189189
need_cmd cut
190+
need_cmd head
190191
need_cmd grep
191192
need_cmd xargs
192193
need_cmd cp
@@ -257,6 +258,16 @@ case $CFG_CPUTYPE in
257258
err "unknown CPU type: $CFG_CPUTYPE"
258259
esac
259260

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+
260271
DEFAULT_HOST_TRIPLE="${CFG_CPUTYPE}-${CFG_OSTYPE}"
261272

262273
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
@@ -283,7 +294,7 @@ else
283294
fi
284295

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

353364
if [ ! -z "$CFG_PANDOC" ]
354365
then
355-
PV=$(pandoc --version | awk '/^pandoc/ {print $2}')
356-
if [ "$PV" \< "1.8" ]
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" ]
357373
then
358-
step_msg "pandoc $PV is too old. disabling"
359-
BAD_PANDOC=1
374+
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
375+
BAD_PANDOC=1
360376
fi
361377
fi
362378

@@ -579,7 +595,7 @@ then
579595
need_ok "git failed"
580596

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

585601
msg "git: submodule foreach update"

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"
12+
"use": "op", "self": "atom", "pub": "atom", "priv": "atom"
1313
};
1414
var typeKeywords = function() {
1515
var keywords = {"fn": "fn"};

0 commit comments

Comments
 (0)