Skip to content

Commit 33cf3f8

Browse files
committed
---
yaml --- r: 151788 b: refs/heads/try2 c: 11e17c8 h: refs/heads/master v: v3
1 parent d2c1b25 commit 33cf3f8

File tree

263 files changed

+8600
-5628
lines changed

Some content is hidden

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

263 files changed

+8600
-5628
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: 9a5bbd773ca847b7f798d71201cf6ee3389312ce
8+
refs/heads/try2: 11e17c8705f39754c837fe5c6306d9d5edd04a20
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#
6969
# * `TESTNAME=...` - Specify the name of tests to run
7070
# * `CHECK_IGNORED=1` - Run normally-ignored tests
71-
# * `NO_BENCH=1` - Don't run crate benchmarks (disable `--bench` flag)
71+
# * `PLEASE_BENCH=1` - Run crate benchmarks (enable `--bench` flag)
7272
#
7373
# * `CFG_ENABLE_VALGRIND=1` - Run tests under valgrind
7474
# * `VALGRIND_COMPILE=1` - Run the compiler itself under valgrind

branches/try2/mk/crates.mk

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,29 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core
54+
workcache url log regex graphviz core rlibc
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

5959
DEPS_core :=
60+
DEPS_rlibc :=
6061
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace native:jemalloc
62+
DEPS_graphviz := std
6163
DEPS_green := std rand native:context_switch
6264
DEPS_rustuv := std native:uv native:uv_support
6365
DEPS_native := std
6466
DEPS_syntax := std term serialize collections log fmt_macros
6567
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
66-
collections time log
68+
collections time log graphviz
6769
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
6870
test time
6971
DEPS_flate := std native:miniz
7072
DEPS_arena := std collections
7173
DEPS_graphviz := std
7274
DEPS_glob := std
7375
DEPS_serialize := std collections log
74-
DEPS_term := std collections
76+
DEPS_term := std collections log
7577
DEPS_semver := std
7678
DEPS_uuid := std serialize rand
7779
DEPS_sync := std
@@ -80,8 +82,8 @@ DEPS_collections := std rand
8082
DEPS_fourcc := syntax std
8183
DEPS_hexfloat := syntax std
8284
DEPS_num := std rand
83-
DEPS_test := std collections getopts serialize term time
84-
DEPS_time := std serialize
85+
DEPS_test := std collections getopts serialize term time regex
86+
DEPS_time := std serialize sync
8587
DEPS_rand := std
8688
DEPS_url := std collections
8789
DEPS_workcache := std serialize collections log
@@ -98,6 +100,7 @@ TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
98100
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
99101

100102
ONLY_RLIB_core := 1
103+
ONLY_RLIB_rlibc := 1
101104

102105
################################################################################
103106
# You should not need to edit below this line

branches/try2/mk/docs.mk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DOCS := index intro tutorial guide-ffi guide-macros guide-lifetimes \
3030
guide-tasks guide-container guide-pointers guide-testing \
3131
guide-runtime complement-bugreport complement-cheatsheet \
3232
complement-lang-faq complement-project-faq rust rustdoc \
33-
guide-unsafe not_found
33+
guide-unsafe
3434

3535
PDF_DOCS := tutorial rust
3636

@@ -42,10 +42,11 @@ L10N_LANGS := ja
4242
# Generally no need to edit below here.
4343

4444
# The options are passed to the documentation generators.
45-
RUSTDOC_HTML_OPTS = --markdown-css rust.css \
46-
--markdown-before-content=doc/version_info.html \
45+
RUSTDOC_HTML_OPTS_NO_CSS = --markdown-before-content=doc/version_info.html \
4746
--markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc
4847

48+
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css
49+
4950
PANDOC_BASE_OPTS := --standalone --toc --number-sections
5051
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.tex \
5152
--from=markdown --include-before-body=doc/footer.tex --to=latex
@@ -152,6 +153,11 @@ doc/footer.tex: $(D)/footer.inc | doc/
152153
@$(call E, pandoc: $@)
153154
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
154155

156+
# HTML (rustdoc)
157+
DOC_TARGETS += doc/not_found.html
158+
doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
159+
$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css http://static.rust-lang.org/doc/master/rust.css $<
160+
155161
define DEF_DOC
156162

157163
# HTML (rustdoc)

branches/try2/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ $$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
261261
AR="$$(AR_$(1))" \
262262
RANLIB="$$(AR_$(1)) s" \
263263
CPPFLAGS="-I $(S)src/rt/" \
264-
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1))"
264+
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1)) -g1"
265265
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
266266
$$(Q)cp $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1)) $$(JEMALLOC_LIB_$(1))
267267

branches/try2/mk/tests.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ ifdef CHECK_IGNORED
3232
TESTARGS += --ignored
3333
endif
3434

35-
TEST_BENCH = --bench
35+
TEST_BENCH =
3636

3737
# Arguments to the cfail/rfail/rpass/bench tests
3838
ifdef CFG_VALGRIND
3939
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
4040
TEST_BENCH =
4141
endif
4242

43-
ifdef NO_BENCH
44-
TEST_BENCH =
43+
ifdef PLEASE_BENCH
44+
TEST_BENCH = --bench
4545
endif
4646

4747
# Arguments to the perf tests

branches/try2/src/compiletest/common.rs

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use std::from_str::FromStr;
1212
use std::fmt;
13+
use regex::Regex;
1314

1415
#[deriving(Clone, Eq)]
1516
pub enum Mode {
@@ -40,25 +41,25 @@ impl FromStr for Mode {
4041
impl fmt::Show for Mode {
4142
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4243
let msg = match *self {
43-
CompileFail => "compile-fail",
44-
RunFail => "run-fail",
45-
RunPass => "run-pass",
46-
Pretty => "pretty",
47-
DebugInfoGdb => "debuginfo-gdb",
48-
DebugInfoLldb => "debuginfo-lldb",
49-
Codegen => "codegen",
44+
CompileFail => "compile-fail",
45+
RunFail => "run-fail",
46+
RunPass => "run-pass",
47+
Pretty => "pretty",
48+
DebugInfoGdb => "debuginfo-gdb",
49+
DebugInfoLldb => "debuginfo-lldb",
50+
Codegen => "codegen",
5051
};
51-
write!(f.buf, "{}", msg)
52+
msg.fmt(f)
5253
}
5354
}
5455

5556
#[deriving(Clone)]
5657
pub struct Config {
5758
// The library paths required for running the compiler
58-
pub compile_lib_path: ~str,
59+
pub compile_lib_path: StrBuf,
5960

6061
// The library paths required for running compiled programs
61-
pub run_lib_path: ~str,
62+
pub run_lib_path: StrBuf,
6263

6364
// The rustc executable
6465
pub rustc_path: Path,
@@ -79,7 +80,7 @@ pub struct Config {
7980
pub aux_base: Path,
8081

8182
// The name of the stage being built (stage1, etc)
82-
pub stage_id: ~str,
83+
pub stage_id: StrBuf,
8384

8485
// The test mode, compile-fail, run-fail, run-pass
8586
pub mode: Mode,
@@ -88,7 +89,7 @@ pub struct Config {
8889
pub run_ignored: bool,
8990

9091
// Only run tests that match this filter
91-
pub filter: Option<~str>,
92+
pub filter: Option<Regex>,
9293

9394
// Write out a parseable log of tests that were run
9495
pub logfile: Option<Path>,
@@ -109,37 +110,37 @@ pub struct Config {
109110

110111
// A command line to prefix program execution with,
111112
// for running under valgrind
112-
pub runtool: Option<~str>,
113+
pub runtool: Option<StrBuf>,
113114

114115
// Flags to pass to the compiler when building for the host
115-
pub host_rustcflags: Option<~str>,
116+
pub host_rustcflags: Option<StrBuf>,
116117

117118
// Flags to pass to the compiler when building for the target
118-
pub target_rustcflags: Option<~str>,
119+
pub target_rustcflags: Option<StrBuf>,
119120

120121
// Run tests using the JIT
121122
pub jit: bool,
122123

123124
// Target system to be tested
124-
pub target: ~str,
125+
pub target: StrBuf,
125126

126127
// Host triple for the compiler being invoked
127-
pub host: ~str,
128+
pub host: StrBuf,
128129

129130
// Path to the android tools
130131
pub android_cross_path: Path,
131132

132133
// Extra parameter to run adb on arm-linux-androideabi
133-
pub adb_path: ~str,
134+
pub adb_path: StrBuf,
134135

135136
// Extra parameter to run test sute on arm-linux-androideabi
136-
pub adb_test_dir: ~str,
137+
pub adb_test_dir: StrBuf,
137138

138139
// status whether android device available or not
139140
pub adb_device_status: bool,
140141

141142
// the path containing LLDB's Python module
142-
pub lldb_python_dir: Option<~str>,
143+
pub lldb_python_dir: Option<StrBuf>,
143144

144145
// Explain what's going on
145146
pub verbose: bool

0 commit comments

Comments
 (0)