Skip to content

Commit c56edcc

Browse files
committed
---
yaml --- r: 154101 b: refs/heads/try2 c: e5df5f5 h: refs/heads/master i: 154099: 5580f91 v: v3
1 parent fbd13bd commit c56edcc

File tree

616 files changed

+14531
-15274
lines changed

Some content is hidden

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

616 files changed

+14531
-15274
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: 8a7b0fa939c4e1ae8dcbba941ab4d46a3602b9fe
8+
refs/heads/try2: e5df5f56069de2778857597118a6e5f95d659736
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/clean.mk

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
# Cleanup
1313
######################################################################
1414

15-
CLEAN_STAGE_RULES := \
16-
$(foreach stage, $(STAGES), \
17-
$(foreach host, $(CFG_HOST), \
18-
clean$(stage)_H_$(host) \
19-
$(foreach target, $(CFG_TARGET), \
15+
CLEAN_STAGE_RULES := \
16+
$(foreach stage, $(STAGES), \
17+
$(foreach host, $(CFG_HOST), \
18+
clean$(stage)_H_$(host) \
19+
$(foreach target, $(CFG_TARGET), \
2020
clean$(stage)_T_$(target)_H_$(host))))
2121

22-
CLEAN_STAGE_RULES := $(CLEAN_STAGE_RULES) \
22+
CLEAN_STAGE_RULES := $(CLEAN_STAGE_RULES) \
2323
$(foreach host, $(CFG_HOST), clean-generic-H-$(host))
2424

25-
CLEAN_STAGE_RULES := $(CLEAN_STAGE_RULES) \
25+
CLEAN_STAGE_RULES := $(CLEAN_STAGE_RULES) \
2626
$(foreach host, $(CFG_TARGET), clean-generic-T-$(host))
2727

28-
CLEAN_LLVM_RULES = \
29-
$(foreach target, $(CFG_HOST), \
28+
CLEAN_LLVM_RULES = \
29+
$(foreach target, $(CFG_HOST), \
3030
clean-llvm$(target))
3131

3232
.PHONY: clean clean-all clean-misc clean-llvm
@@ -54,20 +54,20 @@ clean-generic-$(2)-$(1):
5454
$(1)/rt \
5555
$(1)/test \
5656
$(1)/stage* \
57-
-type f \( \
57+
-type f \( \
5858
-name '*.[odasS]' -o \
59-
-name '*.so' -o \
60-
-name '*.dylib' -o \
61-
-name '*.rlib' -o \
62-
-name 'stamp.*' -o \
63-
-name '*.lib' -o \
64-
-name '*.dll' -o \
65-
-name '*.def' -o \
66-
-name '*.bc' \
67-
\) \
59+
-name '*.so' -o \
60+
-name '*.dylib' -o \
61+
-name '*.rlib' -o \
62+
-name 'stamp.*' -o \
63+
-name '*.lib' -o \
64+
-name '*.dll' -o \
65+
-name '*.def' -o \
66+
-name '*.bc' \
67+
\) \
6868
| xargs rm -f
69-
$(Q)find $(1)\
70-
-name '*.dSYM' \
69+
$(Q)find $(1) \
70+
-name '*.dSYM' \
7171
| xargs rm -Rf
7272
endef
7373

@@ -76,8 +76,8 @@ $(foreach targ, $(CFG_TARGET), $(eval $(call CLEAN_GENERIC,$(targ),T)))
7676

7777
define CLEAN_HOST_STAGE_N
7878

79-
clean$(1)_H_$(2): \
80-
$$(foreach crate,$$(CRATES),clean$(1)_H_$(2)-lib-$$(crate)) \
79+
clean$(1)_H_$(2): \
80+
$$(foreach crate,$$(CRATES),clean$(1)_H_$(2)-lib-$$(crate)) \
8181
$$(foreach tool,$$(TOOLS),clean$(1)_H_$(2)-tool-$$(tool))
8282
$$(Q)rm -fr $(2)/rt/libbacktrace
8383

@@ -96,8 +96,8 @@ $(foreach host, $(CFG_HOST), \
9696

9797
define CLEAN_TARGET_STAGE_N
9898

99-
clean$(1)_T_$(2)_H_$(3): \
100-
$$(foreach crate,$$(CRATES),clean$(1)_T_$(2)_H_$(3)-lib-$$(crate)) \
99+
clean$(1)_T_$(2)_H_$(3): \
100+
$$(foreach crate,$$(CRATES),clean$(1)_T_$(2)_H_$(3)-lib-$$(crate)) \
101101
$$(foreach tool,$$(TOOLS),clean$(1)_T_$(2)_H_$(3)-tool-$$(tool))
102102
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a
103103
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libcompiler-rt.a

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/ctags.mk

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
# This is using a blacklist approach, probably more durable than a whitelist.
1919
# We exclude: external dependencies (llvm, libuv, gyp, rt/{msvc,sundown,vg}),
2020
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
21-
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,,\
22-
$(patsubst ${CFG_SRC_DIR}src/libuv,,\
23-
$(patsubst ${CFG_SRC_DIR}src/compiletest,,\
24-
$(patsubst ${CFG_SRC_DIR}src/test,,\
25-
$(patsubst ${CFG_SRC_DIR}src/gyp,,\
26-
$(patsubst ${CFG_SRC_DIR}src/etc,,\
27-
$(patsubst ${CFG_SRC_DIR}src/rt,,\
28-
$(patsubst ${CFG_SRC_DIR}src/rt/arch,,\
29-
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,,\
30-
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,,\
31-
$(patsubst ${CFG_SRC_DIR}src/rt/vg,,\
32-
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*)\
21+
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
22+
$(patsubst ${CFG_SRC_DIR}src/libuv,, \
23+
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
24+
$(patsubst ${CFG_SRC_DIR}src/test,, \
25+
$(patsubst ${CFG_SRC_DIR}src/gyp,, \
26+
$(patsubst ${CFG_SRC_DIR}src/etc,, \
27+
$(patsubst ${CFG_SRC_DIR}src/rt,, \
28+
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \
29+
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,, \
30+
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,, \
31+
$(patsubst ${CFG_SRC_DIR}src/rt/vg,, \
32+
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*) \
3333
)))))))))))
3434
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=-javascript --recurse ${CTAGS_LOCATIONS}
3535
# We could use `--languages=Rust`, but there is value in producing tags for the

branches/try2/mk/docs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ HTML_DEPS += doc/version_info.html
112112
doc/version_info.html: $(D)/version_info.html.template $(MKFILE_DEPS) \
113113
$(wildcard $(D)/*.*) | doc/
114114
@$(call E, version-info: $@)
115-
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(\
116-
CFG_SHORT_VER_HASH)/;\
115+
$(Q)sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$( \
116+
CFG_SHORT_VER_HASH)/; \
117117
s/STAMP/$(CFG_VER_HASH)/;" $< >$@
118118

119119
GENERATED += doc/version.tex doc/version_info.html
@@ -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

0 commit comments

Comments
 (0)