Skip to content

Commit 9bcdeca

Browse files
committed
---
yaml --- r: 154103 b: refs/heads/try2 c: dd20f09 h: refs/heads/master i: 154101: c56edcc 154099: 5580f91 154095: 329ffde v: v3
1 parent 77df6ba commit 9bcdeca

File tree

537 files changed

+12298
-5053
lines changed

Some content is hidden

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

537 files changed

+12298
-5053
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: 08f033b8b73a00180955096f2c03df187f9b2060
8+
refs/heads/try2: dd20f0961149022505359c27e308d04b06b672a7
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: 68 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,94 @@
1-
*~
2-
\#*\#
3-
\#*
4-
.#*
5-
*.x86
6-
*.llvm
7-
*.out
1+
*.a
2+
*.aux
3+
*.bc
84
*.boot
9-
*.rustc
5+
*.bz2
6+
*.cmi
7+
*.cmo
108
*.cmx
11-
*.dll
9+
*.cp
10+
*.cps
11+
*.d
12+
*.dSYM
1213
*.def
13-
*.exe
14-
*.a
15-
*.rlib
16-
*.so
14+
*.diff
15+
*.dll
1716
*.dylib
18-
*.orig
19-
*.cmo
20-
*.cmi
21-
*.dSYM
22-
*.d
23-
*.o
24-
*.ll
25-
*.bc
26-
*.aux
27-
*.cp
17+
*.elc
18+
*.epub
19+
*.exe
2820
*.fn
21+
*.html
2922
*.ky
30-
*.cps
23+
*.ll
24+
*.llvm
3125
*.log
26+
*.o
27+
*.orig
28+
*.out
29+
*.patch
3230
*.pdf
33-
*.epub
34-
*.html
3531
*.pg
36-
*.toc
37-
*.tp
38-
*.vr
39-
*.patch
40-
*.diff
32+
*.pot
33+
*.pyc
4134
*.rej
42-
*.swp
35+
*.rlib
36+
*.rustc
37+
*.so
4338
*.swo
39+
*.swp
4440
*.tmp
45-
*.pyc
46-
*.elc
41+
*.toc
42+
*.tp
43+
*.vr
44+
*.x86
45+
*~
46+
.#*
47+
.DS_Store
48+
.cproject
4749
.hg/
4850
.hgignore
49-
.cproject
5051
.project
52+
.settings/
5153
.valgrindrc
52-
lexer.ml
53-
TAGS
54-
TAGS.emacs
55-
TAGS.vi
56-
version.ml
57-
version.texi
54+
/*-*-*-*/
55+
/*-*-*/
5856
/Makefile
59-
config.mk
60-
/rt/
61-
/rustllvm/
62-
/test/
57+
/build
58+
/dist/
59+
/dl/
60+
/doc
6361
/inst/
62+
/llvm/
6463
/mingw-build/
65-
src/.DS_Store
66-
/tmp/
67-
/dist/
64+
/nd/
65+
/rt/
66+
/rustllvm/
67+
/src/libunicode/DerivedCoreProperties.txt
68+
/src/libunicode/EastAsianWidth.txt
69+
/src/libunicode/HangulSyllableType.txt
70+
/src/libunicode/PropList.txt
71+
/src/libunicode/Scripts.txt
72+
/src/libunicode/UnicodeData.txt
6873
/stage0/
69-
/dl/
7074
/stage1/
7175
/stage2/
7276
/stage3/
73-
*.bz2
74-
/doc
75-
/nd/
76-
/llvm/
77-
version.md
78-
keywords.md
79-
x86_64-apple-darwin/
80-
x86_64-unknown-linux-gnu/
81-
i686-unknown-linux-gnu/
82-
tmp.*.rs
77+
/test/
78+
/tmp/
79+
TAGS
80+
TAGS.emacs
81+
TAGS.vi
82+
\#*
83+
\#*\#
84+
config.mk
8385
config.stamp
84-
.DS_Store
86+
keywords.md
87+
lexer.ml
88+
src/.DS_Store
8589
src/etc/dl
86-
.settings/
87-
/build
88-
i686-pc-mingw32/
8990
src/librustc_llvm/llvmdeps.rs
90-
*.pot
91+
tmp.*.rs
92+
version.md
93+
version.ml
94+
version.texi

branches/try2/configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ case $CFG_OSTYPE in
291291
CFG_OSTYPE=unknown-freebsd
292292
;;
293293

294+
DragonFly)
295+
CFG_OSTYPE=unknown-dragonfly
296+
;;
297+
294298
Darwin)
295299
CFG_OSTYPE=apple-darwin
296300
;;

branches/try2/mk/crates.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
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-
url log regex graphviz core rlibc alloc debug rustrt \
54+
url log regex graphviz core rbml rlibc alloc debug rustrt \
5555
unicode
5656
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros \
5757
rustc_llvm rustc_back
@@ -71,7 +71,7 @@ DEPS_green := std native:context_switch
7171
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
7373
DEPS_syntax := std term serialize log fmt_macros debug
74-
DEPS_rustc := syntax flate arena serialize getopts \
74+
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
7777
DEPS_rustc_back := std syntax rustc_llvm flate log libc
@@ -82,6 +82,7 @@ DEPS_arena := std
8282
DEPS_graphviz := std
8383
DEPS_glob := std
8484
DEPS_serialize := std log
85+
DEPS_rbml := std log serialize
8586
DEPS_term := std log
8687
DEPS_semver := std
8788
DEPS_uuid := std serialize
@@ -91,7 +92,7 @@ DEPS_collections := core alloc unicode
9192
DEPS_fourcc := rustc syntax std
9293
DEPS_hexfloat := rustc syntax std
9394
DEPS_num := std
94-
DEPS_test := std getopts serialize term time regex native:rust_test_helpers
95+
DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
9596
DEPS_time := std serialize
9697
DEPS_rand := core
9798
DEPS_url := std

branches/try2/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ doc/$(1)/:
285285
$(2) += doc/$(1)/index.html
286286
doc/$(1)/index.html: CFG_COMPILER_HOST_TRIPLE = $(CFG_TARGET)
287287
doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
288-
@$$(call E, rustdoc $$@)
288+
@$$(call E, rustdoc: $$@)
289289
$$(Q)$$(RUSTDOC) --cfg dox --cfg stage2 $$<
290290
endef
291291

branches/try2/mk/grammar.mk

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SG = $(S)src/grammar/
1313
B = $(CFG_BUILD_DIR)/$(CFG_BUILD)/stage2/
1414
L = $(B)lib/rustlib/$(CFG_BUILD)/lib
1515
LD = $(CFG_BUILD)/stage2/lib/rustlib/$(CFG_BUILD)/lib/
16-
RUSTC = $(B)bin/rustc
16+
RUSTC = $(STAGE2_T_$(CFG_BUILD)_H_$(CFG_BUILD))
1717

1818
# Run the reference lexer against libsyntax and compare the tokens and spans.
1919
# If "// ignore-lexer-test" is present in the file, it will be ignored.
@@ -37,19 +37,25 @@ $(BG)RustLexer.class: $(SG)RustLexer.g4
3737
$(BG)verify: $(SG)verify.rs rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
3838
$(Q)$(RUSTC) -O --out-dir $(BG) -L $(L) $(SG)verify.rs
3939

40-
check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
4140
ifdef CFG_JAVAC
4241
ifdef CFG_ANTLR4
4342
ifdef CFG_GRUN
43+
check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
4444
$(info Verifying libsyntax against the reference lexer ...)
4545
$(Q)$(SG)check.sh $(S) "$(BG)" \
4646
"$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"
4747
else
48-
$(info grun not available, skipping lexer test...)
48+
$(info cfg: grun not available, skipping lexer test...)
49+
check-lexer:
50+
4951
endif
5052
else
51-
$(info antlr4 not available, skipping lexer test...)
53+
$(info cfg: antlr4 not available, skipping lexer test...)
54+
check-lexer:
55+
5256
endif
5357
else
54-
$(info javac not available, skipping lexer test...)
58+
$(info cfg: javac not available, skipping lexer test...)
59+
check-lexer:
60+
5561
endif

branches/try2/mk/platform.mk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,33 @@ CFG_LDPATH_x86_64-unknown-freebsd :=
580580
CFG_RUN_x86_64-unknown-freebsd=$(2)
581581
CFG_RUN_TARG_x86_64-unknown-freebsd=$(call CFG_RUN_x86_64-unknown-freebsd,,$(2))
582582

583+
# x86_64-pc-dragonfly-elf configuration
584+
CC_x86_64-unknown-dragonfly=$(CC)
585+
CXX_x86_64-unknown-dragonfly=$(CXX)
586+
CPP_x86_64-unknown-dragonfly=$(CPP)
587+
AR_x86_64-unknown-dragonfly=$(AR)
588+
CFG_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).so
589+
CFG_STATIC_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).a
590+
CFG_LIB_GLOB_x86_64-unknown-dragonfly=lib$(1)-*.so
591+
CFG_LIB_DSYM_GLOB_x86_64-unknown-dragonfly=$(1)-*.dylib.dSYM
592+
CFG_CFLAGS_x86_64-unknown-dragonfly := -I/usr/include -I/usr/local/include $(CFLAGS)
593+
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -I/usr/include -I/usr/local/include $(CFLAGS)
594+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt
595+
CFG_GCCISH_DEF_FLAG_x86_64-unknown-dragonfly := -Wl,--export-dynamic,--dynamic-list=
596+
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-whole-archive
597+
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive
598+
CFG_DEF_SUFFIX_x86_64-unknown-dragonfly := .bsd.def
599+
CFG_LLC_FLAGS_x86_64-unknown-dragonfly :=
600+
CFG_INSTALL_NAME_x86_64-unknown-dragonfly =
601+
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-dragonfly := -pthread -lkvm
602+
CFG_EXE_SUFFIX_x86_64-unknown-dragonfly :=
603+
CFG_WINDOWSY_x86_64-unknown-dragonfly :=
604+
CFG_UNIXY_x86_64-unknown-dragonfly := 1
605+
CFG_PATH_MUNGE_x86_64-unknown-dragonfly :=
606+
CFG_LDPATH_x86_64-unknown-dragonfly :=
607+
CFG_RUN_x86_64-unknown-dragonfly=$(2)
608+
CFG_RUN_TARG_x86_64-unknown-dragonfly=$(call CFG_RUN_x86_64-unknown-dragonfly,,$(2))
609+
583610

584611
# The -Qunused-arguments sidesteps spurious warnings from clang
585612
define FILTER_FLAGS

branches/try2/mk/rt.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ else ifeq ($(OSTYPE_$(1)), apple-ios)
171171
JEMALLOC_ARGS_$(1) := --disable-tls
172172
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
173173
LIBUV_OSTYPE_$(1) := freebsd
174+
else ifeq ($(OSTYPE_$(1)), unknown-dragonfly)
175+
LIBUV_OSTYPE_$(1) := freebsd
176+
# required on DragonFly, otherwise gyp fails with a Python exception
177+
LIBUV_GYP_ARGS_$(1) := --no-parallel
174178
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
175179
LIBUV_OSTYPE_$(1) := android
176180
LIBUV_ARGS_$(1) := PLATFORM=android host=android OS=linux
@@ -202,7 +206,7 @@ $$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
202206
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
203207
-D ninja \
204208
-DOS=$$(LIBUV_OSTYPE_$(1)) \
205-
-Goutput_dir=$$(@D) --generator-output $$(@D))
209+
-Goutput_dir=$$(@D) $$(LIBUV_GYP_ARGS_$(1)) --generator-output $$(@D))
206210
touch $$@
207211

208212
# Windows has a completely different build system for libuv because of mingw. In

branches/try2/mk/tests.mk

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,28 +171,41 @@ endif
171171
# Main test targets
172172
######################################################################
173173

174+
# The main testing target. Tests lots of stuff.
174175
check: cleantmptestlogs cleantestlibs check-notidy tidy
175176

177+
# As above but don't bother running tidy.
176178
check-notidy: cleantmptestlogs cleantestlibs all check-stage2
177179
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
178180

181+
# A slightly smaller set of tests for smoke testing.
179182
check-lite: cleantestlibs cleantmptestlogs \
180183
$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
181184
check-stage2-rpass \
182185
check-stage2-rfail check-stage2-cfail check-stage2-rmake
183186
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
184187

188+
# Only check the 'reference' tests: rpass/cfail/rfail/rmake.
185189
check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass \
186190
check-stage2-rfail check-stage2-cfail check-stage2-rmake
187191
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
188192

193+
# Only check the docs.
189194
check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
190195
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
191196

192197
# NOTE: Remove after reprogramming windows bots
193198
check-fast: check-lite
194199

195-
check-syntax: check-lexer
200+
# Some less critical tests that are not prone to breakage.
201+
# Not run as part of the normal test suite, but tested by bors on checkin.
202+
check-secondary: check-lexer check-pretty
203+
204+
# check + check-secondary.
205+
check-all: check check-secondary
206+
207+
# Pretty-printing tests.
208+
check-pretty: check-stage2-T-$(CFG_BUILD)-H-$(CFG_BUILD)-pretty-exec
196209

197210
.PHONY: cleantmptestlogs cleantestlibs
198211

branches/try2/src/compiletest/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct Config {
136136
// Extra parameter to run adb on arm-linux-androideabi
137137
pub adb_path: String,
138138

139-
// Extra parameter to run test sute on arm-linux-androideabi
139+
// Extra parameter to run test suite on arm-linux-androideabi
140140
pub adb_test_dir: String,
141141

142142
// status whether android device available or not

0 commit comments

Comments
 (0)