Skip to content

Commit fd7816d

Browse files
committed
---
yaml --- r: 148337 b: refs/heads/try2 c: 901dc2c h: refs/heads/master i: 148335: 32605e8 v: v3
1 parent 19986b9 commit fd7816d

File tree

299 files changed

+17158
-8674
lines changed

Some content is hidden

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

299 files changed

+17158
-8674
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: 7d75bbf50ddcf076d3cf294501346293060c5735
8+
refs/heads/try2: 901dc2c15e08b6527f084c211d8d93448d997155
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ src/.DS_Store
7979
/doc/native
8080
/doc/rustc
8181
/doc/syntax
82-
/doc/rustuv
83-
/doc/rustpkg
8482
/nd/
8583
/llvm/
8684
version.md

branches/try2/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If you're just reporting a bug, please see:
44

5-
http://static.rust-lang.org/doc/master/complement-bugreport.html
5+
https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
66

77
## Pull request procedure
88

branches/try2/Makefile.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ endif
154154

155155
# version-string calculation
156156
CFG_GIT_DIR := $(CFG_SRC_DIR).git
157-
CFG_RELEASE = 0.10-pre
157+
CFG_RELEASE = 0.9
158158
CFG_VERSION = $(CFG_RELEASE)
159159
# windows exe's need numeric versions - don't use anything but
160160
# numbers and dots here
161-
CFG_VERSION_WIN = 0.10
161+
CFG_VERSION_WIN = 0.9
162162

163163
# since $(CFG_GIT) may contain spaces (especially on Windows),
164164
# we need to escape them. (" " to r"\ ")
@@ -371,9 +371,6 @@ DRIVER_CRATE := $(S)src/driver/driver.rs
371371
LLVM_COMPONENTS=x86 arm mips ipo bitreader bitwriter linker asmparser jit mcjit \
372372
interpreter instrumentation
373373

374-
# Only build these LLVM tools
375-
LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt
376-
377374
define DEF_LLVM_VARS
378375
# The configure script defines these variables with the target triples
379376
# separated by Z. This defines new ones with the expected format.
@@ -420,8 +417,7 @@ export CFG_ENABLE_MINGW_CROSS
420417
export CFG_PREFIX
421418
export CFG_LIBDIR
422419
export CFG_RUSTLIBDIR
423-
export CFG_LIBDIR_RELATIVE
424-
export CFG_DISABLE_INJECT_STD_VERSION
420+
export LIBDIR_RELATIVE
425421

426422
######################################################################
427423
# Subprograms
@@ -439,7 +435,7 @@ define SREQ
439435
# Destinations of artifacts for the host compiler
440436
HROOT$(1)_H_$(3) = $(3)/stage$(1)
441437
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
442-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
438+
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(LIBDIR_RELATIVE)
443439

444440
# Destinations of artifacts for target architectures
445441
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)

branches/try2/README.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,50 @@ documentation.
77

88
### Windows
99

10-
1. Download and use the [installer and MinGW][win-wiki].
10+
1. Download and use the [installer][win-exe].
1111
2. Read the [tutorial].
1212
2. Enjoy!
1313

14-
> ***Note:*** Windows users can read the detailed
15-
> [getting started][wiki-start] notes on the wiki.
14+
> ***Note:*** Windows users should read the detailed
15+
> [getting started][wiki-start] notes on the wiki. Even when using
16+
> the binary installer the Windows build requires a MinGW installation,
17+
> the precise details of which are not discussed here.
1618
1719
[tutorial]: http://static.rust-lang.org/doc/tutorial.html
1820
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
19-
[win-wiki]: https://github.com/mozilla/rust/wiki/Using-Rust-on-Windows
21+
[win-exe]: http://static.rust-lang.org/dist/rust-0.9-install.exe
2022

2123
### Linux / OS X
2224

23-
1. Make sure you have installed the dependencies:
24-
* `g++` 4.4 or `clang++` 3.x
25-
* `python` 2.6 or later (but not 3.x)
26-
* `perl` 5.0 or later
27-
* GNU `make` 3.81 or later
28-
* `curl`
29-
2. Download and build Rust:
30-
25+
1. Install the prerequisites (if not already installed)
26+
* g++ 4.4 or clang++ 3.x
27+
* python 2.6 or later (but not 3.x)
28+
* perl 5.0 or later
29+
* gnu make 3.81 or later
30+
* curl
31+
2. Download and build Rust
3132
You can either download a [tarball] or build directly from the [repo].
32-
33+
3334
To build from the [tarball] do:
34-
35+
3536
$ curl -O http://static.rust-lang.org/dist/rust-0.9.tar.gz
3637
$ tar -xzf rust-0.9.tar.gz
3738
$ cd rust-0.9
38-
39+
3940
Or to build from the [repo] do:
4041

4142
$ git clone https://github.com/mozilla/rust.git
4243
$ cd rust
4344

4445
Now that you have Rust's source code, you can configure and build it:
45-
46+
4647
$ ./configure
4748
$ make && make install
48-
49-
> ***Note:*** You may need to use `sudo make install` if you do not normally have
50-
> permission to modify the destination directory. The install locations can
51-
> be adjusted by passing a `--prefix` argument to `configure`. Various other
52-
> options are also supported, pass `--help` for more information on them.
49+
50+
You may need to use `sudo make install` if you do not normally have
51+
permission to modify the destination directory. The install locations can
52+
be adjusted by passing a `--prefix` argument to `configure`. Various other
53+
options are also supported, pass `--help` for more information on them.
5354

5455
When complete, `make install` will place several programs into
5556
`/usr/local/bin`: `rustc`, the Rust compiler; `rustdoc`, the
@@ -75,20 +76,22 @@ Snapshot binaries are currently built and tested on several platforms:
7576
* Linux (various distributions), x86 and x86-64
7677
* OSX 10.6 ("Snow Leopard") or greater, x86 and x86-64
7778

78-
You may find that other platforms work, but these are our officially
79+
You may find that other platforms work, but these are our "tier 1"
7980
supported build environments that are most likely to work.
8081

81-
Rust currently needs about 1.5 GiB of RAM to build without swapping; if it hits
82+
Rust currently needs about 1.8G of RAM to build without swapping; if it hits
8283
swap, it will take a very long time to build.
8384

84-
There is a lot more documentation in the [wiki].
85+
There is lots more documentation in the [wiki].
8586

8687
[wiki]: https://github.com/mozilla/rust/wiki
8788

89+
8890
## License
8991

9092
Rust is primarily distributed under the terms of both the MIT license
9193
and the Apache License (Version 2.0), with portions covered by various
9294
BSD-like licenses.
9395

9496
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
97+

branches/try2/configure

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ opt clang 0 "prefer clang to gcc for building the runtime"
381381
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
382382
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
383383
opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
384-
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
385384
valopt prefix "/usr/local" "set installation prefix"
386385
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
387386
valopt llvm-root "" "set LLVM root"
@@ -402,13 +401,13 @@ valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
402401
# On windows we just store the libraries in the bin directory because
403402
# there's no rpath
404403
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
405-
CFG_LIBDIR_RELATIVE=lib
404+
LIBDIR_RELATIVE=lib
406405
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
407406
then
408-
CFG_LIBDIR_RELATIVE=bin
407+
LIBDIR_RELATIVE=bin
409408
fi
410409

411-
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
410+
valopt libdir "${CFG_PREFIX}/${LIBDIR_RELATIVE}" "install libraries"
412411
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
413412

414413
# Validate Options
@@ -772,16 +771,16 @@ do
772771
make_dir $h/stage$i/bin
773772

774773
# host lib dir
775-
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE
774+
make_dir $h/stage$i/$LIBDIR_RELATIVE
776775

777776
# host test dir
778777
make_dir $h/stage$i/test
779778

780779
# target bin dir
781-
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
780+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
782781

783782
# target lib dir
784-
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
783+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
785784
done
786785
done
787786

@@ -796,7 +795,6 @@ do
796795
make_dir $h/test/codegen
797796
make_dir $h/test/doc-tutorial
798797
make_dir $h/test/doc-guide-ffi
799-
make_dir $h/test/doc-guide-runtime
800798
make_dir $h/test/doc-guide-macros
801799
make_dir $h/test/doc-guide-lifetimes
802800
make_dir $h/test/doc-guide-pointers
@@ -1038,12 +1036,11 @@ putvar CFG_TARGET
10381036
putvar CFG_C_COMPILER
10391037
putvar CFG_LIBDIR
10401038
putvar CFG_RUSTLIBDIR
1041-
putvar CFG_LIBDIR_RELATIVE
1039+
putvar LIBDIR_RELATIVE
10421040
putvar CFG_DISABLE_MANAGE_SUBMODULES
10431041
putvar CFG_ANDROID_CROSS_PATH
10441042
putvar CFG_MINGW32_CROSS_PATH
10451043
putvar CFG_MANDIR
1046-
putvar CFG_DISABLE_INJECT_STD_VERSION
10471044

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

branches/try2/doc/README

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Pandoc, a universal document converter, is required to generate docs as HTML
2+
from Rust's source code. It's available for most platforms here:
3+
http://johnmacfarlane.net/pandoc/installing.html
4+
5+
Node.js (http://nodejs.org/) is also required for generating HTML from
6+
the Markdown docs (reference manual, tutorials, etc.) distributed with
7+
this git repository.
8+
9+
To generate all the docs, run `make docs` from the root of the repository.
10+
This will convert the distributed Markdown docs to HTML and generate HTML doc
11+
for the 'std' and 'extra' libraries.
12+
13+
To generate HTML documentation from one source file/crate, do something like:
14+
15+
rustdoc --output-dir html-doc/ --output-format html ../src/libstd/path.rs
16+
17+
(This, of course, requires that you've built/installed the `rustdoc` tool.)
18+
19+
To generate an HTML version of a doc from Markdown, without having Node.js
20+
installed, do something like:
21+
22+
pandoc --from=markdown --to=html5 --number-sections -o rust.html rust.md
23+
24+
The syntax for pandoc flavored markdown can be found at:
25+
http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
26+
27+
A nice quick reference (for non-pandoc markdown) is at:
28+
http://kramdown.rubyforge.org/quickref.html

branches/try2/doc/README.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)