Skip to content

Commit ef9e44e

Browse files
committed
---
yaml --- r: 105974 b: refs/heads/auto c: 76e0e26 h: refs/heads/master v: v3
1 parent e29e3c1 commit ef9e44e

File tree

495 files changed

+50627
-7218
lines changed

Some content is hidden

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

495 files changed

+50627
-7218
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: a7d3637f6711cc96a5f6dc86772dba14fef1a013
16+
refs/heads/auto: 76e0e26603d723038dae1ad06161cade47e53a55
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ config.mk
6565
/mingw-build/
6666
src/.DS_Store
6767
/tmp/
68+
/dist/
6869
/stage0/
6970
/dl/
7071
/stage1/

branches/auto/configure

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ err() {
2222
need_ok() {
2323
if [ $? -ne 0 ]
2424
then
25-
err $1
25+
err "$1"
2626
fi
2727
}
2828

@@ -340,7 +340,7 @@ DEFAULT_BUILD="${CFG_CPUTYPE}-${CFG_OSTYPE}"
340340

341341
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
342342
CFG_BUILD_DIR="$(pwd)/"
343-
CFG_SELF=${CFG_SRC_DIR}$(basename $0)
343+
CFG_SELF="$0"
344344
CFG_CONFIGURE_ARGS="$@"
345345

346346
OPTIONS=""
@@ -412,16 +412,15 @@ fi
412412
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
413413
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
414414

415-
# Validate Options
416-
step_msg "validating $CFG_SELF args"
417-
validate_opt
418-
419415
if [ $HELP -eq 1 ]
420416
then
421417
echo
422418
exit 0
423419
fi
424420

421+
# Validate Options
422+
step_msg "validating $CFG_SELF args"
423+
validate_opt
425424

426425
step_msg "looking for build programs"
427426

@@ -455,9 +454,8 @@ probe CFG_ISCC iscc
455454
probe CFG_LLNEXTGEN LLnextgen
456455
probe CFG_PANDOC pandoc
457456
probe CFG_PDFLATEX pdflatex
458-
probe CFG_XETEX xetex
459-
probe CFG_LUATEX luatex
460-
probe CFG_NODE nodejs node
457+
probe CFG_XELATEX xelatex
458+
probe CFG_LUALATEX lualatex
461459
probe CFG_GDB gdb
462460
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
463461
then
@@ -728,7 +726,7 @@ step_msg "making directories"
728726

729727
for i in \
730728
doc doc/std doc/extra \
731-
dl tmp
729+
dl tmp dist
732730
do
733731
make_dir $i
734732
done

branches/auto/mk/crates.mk

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
################################################################################
5151

5252
TARGET_CRATES := std extra green rustuv native flate arena glob term semver \
53-
uuid serialize sync getopts collections num test time
54-
HOST_CRATES := syntax rustc rustdoc fourcc
53+
uuid serialize sync getopts collections num test time rand
54+
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat
5555
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5656
TOOLS := compiletest rustdoc rustc
5757

58-
DEPS_std := native:rustrt native:compiler-rt
59-
DEPS_extra := std term sync serialize getopts collections time
60-
DEPS_green := std native:context_switch
58+
DEPS_std := native:rustrt native:compiler-rt native:backtrace
59+
DEPS_extra := std term sync serialize getopts collections time rand
60+
DEPS_green := std rand native:context_switch
6161
DEPS_rustuv := std native:uv native:uv_support
6262
DEPS_native := std
6363
DEPS_syntax := std term serialize collections
@@ -71,14 +71,16 @@ DEPS_glob := std
7171
DEPS_serialize := std collections
7272
DEPS_term := std collections
7373
DEPS_semver := std
74-
DEPS_uuid := std serialize
74+
DEPS_uuid := std serialize rand
7575
DEPS_sync := std
7676
DEPS_getopts := std
77-
DEPS_collections := std
77+
DEPS_collections := std rand
7878
DEPS_fourcc := syntax std
79-
DEPS_num := std
79+
DEPS_hexfloat := syntax std
80+
DEPS_num := std rand
8081
DEPS_test := std extra collections getopts serialize term
8182
DEPS_time := std serialize
83+
DEPS_rand := std
8284

8385
TOOL_DEPS_compiletest := test green rustuv getopts
8486
TOOL_DEPS_rustdoc := rustdoc native

branches/auto/mk/dist.mk

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
PKG_NAME := rust
66
PKG_DIR = $(PKG_NAME)-$(CFG_RELEASE)
7-
PKG_TAR = $(PKG_DIR).tar.gz
7+
PKG_TAR = dist/$(PKG_DIR).tar.gz
88

99
ifdef CFG_ISCC
1010
PKG_ISS = $(wildcard $(S)src/etc/pkg/*.iss)
1111
PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
12-
PKG_EXE = $(PKG_DIR)-install.exe
12+
PKG_EXE = dist/$(PKG_DIR)-install.exe
1313
endif
1414

1515
ifeq ($(CFG_OSTYPE), apple-darwin)
16-
PKG_OSX = $(PKG_DIR).pkg
16+
PKG_OSX = dist/$(PKG_DIR).pkg
1717
endif
1818

1919
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
@@ -71,14 +71,15 @@ dist-prepare-win: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
7171
dist-prepare-win: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
7272
dist-prepare-win: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
7373
dist-prepare-win: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
74+
dist-prepare-win: PREPARE_CLEAN=true
7475
dist-prepare-win: prepare-base
7576

7677
endif
7778

7879
$(PKG_TAR): $(PKG_FILES)
7980
@$(call E, making dist dir)
80-
$(Q)rm -Rf dist
81-
$(Q)mkdir -p dist/$(PKG_DIR)
81+
$(Q)rm -Rf tmp/dist/$(PKG_DIR)
82+
$(Q)mkdir -p tmp/dist/$(PKG_DIR)
8283
$(Q)tar \
8384
-C $(S) \
8485
--exclude-vcs \
@@ -89,9 +90,9 @@ $(PKG_TAR): $(PKG_FILES)
8990
--exclude=*/llvm/test/*/*/*.ll \
9091
--exclude=*/llvm/test/*/*/*.td \
9192
--exclude=*/llvm/test/*/*/*.s \
92-
-c $(UNROOTED_PKG_FILES) | tar -x -C dist/$(PKG_DIR)
93-
$(Q)tar -czf $(PKG_TAR) -C dist $(PKG_DIR)
94-
$(Q)rm -Rf dist
93+
-c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_DIR)
94+
$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_DIR)
95+
$(Q)rm -Rf tmp/dist/$(PKG_DIR)
9596

9697
.PHONY: dist distcheck
9798

@@ -156,3 +157,35 @@ distcheck-osx: $(PKG_OSX)
156157
@echo -----------------------------------------------
157158

158159
endif
160+
161+
dist-install-dir: $(foreach host,$(CFG_HOST),dist-install-dir-$(host))
162+
163+
dist-tar-bins: $(foreach host,$(CFG_HOST),dist/$(PKG_DIR)-$(host).tar.gz)
164+
165+
define DEF_INSTALLER
166+
dist-install-dir-$(1): PREPARE_HOST=$(1)
167+
dist-install-dir-$(1): PREPARE_TARGETS=$(1)
168+
dist-install-dir-$(1): PREPARE_STAGE=2
169+
dist-install-dir-$(1): PREPARE_DEST_DIR=tmp/dist/$$(PKG_DIR)-$(1)
170+
dist-install-dir-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
171+
dist-install-dir-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
172+
dist-install-dir-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
173+
dist-install-dir-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
174+
dist-install-dir-$(1): PREPARE_CLEAN=true
175+
dist-install-dir-$(1): prepare-base
176+
$$(Q)(cd $$(PREPARE_DEST_DIR)/ && find -type f) \
177+
> $$(PREPARE_DEST_DIR)/$$(CFG_LIBDIR_RELATIVE)/$$(CFG_RUSTLIBDIR)/manifest
178+
$$(Q)$$(PREPARE_MAN_CMD) $$(S)COPYRIGHT $$(PREPARE_DEST_DIR)
179+
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)
180+
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)
181+
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)
182+
$$(Q)$$(PREPARE_BIN_CMD) $$(S)src/etc/install.sh $$(PREPARE_DEST_DIR)
183+
184+
dist/$$(PKG_DIR)-$(1).tar.gz: dist-install-dir-$(1)
185+
@$(call E, build: $$@)
186+
$$(Q)tar -czf dist/$$(PKG_DIR)-$(1).tar.gz -C tmp/dist $$(PKG_DIR)-$(1)
187+
188+
endef
189+
190+
$(foreach host,$(CFG_HOST),\
191+
$(eval $(call DEF_INSTALLER,$(host))))

branches/auto/mk/docs.mk

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
# translated.
2828
######################################################################
2929
DOCS := index tutorial guide-ffi guide-macros guide-lifetimes \
30-
guide-tasks guide-container guide-pointers \
31-
complement-cheatsheet guide-runtime \
32-
rust rustdoc
30+
guide-tasks guide-container guide-pointers guide-testing \
31+
guide-runtime complement-bugreport complement-cheatsheet \
32+
complement-lang-faq complement-project-faq rust rustdoc
3333

3434
PDF_DOCS := tutorial rust
3535

@@ -46,7 +46,7 @@ RUSTDOC_HTML_OPTS = --markdown-css rust.css \
4646
--markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc
4747

4848
PANDOC_BASE_OPTS := --standalone --toc --number-sections
49-
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.md \
49+
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.tex \
5050
--from=markdown --include-before-body=doc/footer.tex --to=latex
5151
PANDOC_EPUB_OPTS = $(PANDOC_BASE_OPTS) --to=epub
5252

@@ -73,18 +73,20 @@ endif
7373
# Check for the various external utilities for the EPUB/PDF docs:
7474

7575
ifeq ($(CFG_PDFLATEX),)
76-
$(info cfg: no pdflatex found, omitting doc/rust.pdf)
77-
NO_PDF_DOCS = 1
78-
else
79-
ifeq ($(CFG_XETEX),)
80-
$(info cfg: no xetex found, disabling doc/rust.pdf)
81-
NO_PDF_DOCS = 1
76+
$(info cfg: no pdflatex found, deferring to xelatex)
77+
ifeq ($(CFG_XELATEX),)
78+
$(info cfg: no xelatex found, deferring to lualatex)
79+
ifeq ($(CFG_LUALATEX),)
80+
$(info cfg: no lualatex found, disabling LaTeX docs)
81+
NO_PDF_DOCS = 1
82+
else
83+
CFG_LATEX := $(CFG_LUALATEX)
84+
endif
8285
else
83-
ifeq ($(CFG_LUATEX),)
84-
$(info cfg: lacking luatex, disabling pdflatex)
85-
NO_PDF_DOCS = 1
86-
endif
86+
CFG_LATEX := $(CFG_XELATEX)
8787
endif
88+
else
89+
CFG_LATEX := $(CFG_PDFLATEX)
8890
endif
8991

9092

@@ -93,17 +95,12 @@ $(info cfg: no pandoc found, omitting PDF and EPUB docs)
9395
ONLY_HTML_DOCS = 1
9496
endif
9597

96-
ifeq ($(CFG_NODE),)
97-
$(info cfg: no node found, omitting PDF and EPUB docs)
98-
ONLY_HTML_DOCS = 1
99-
endif
100-
10198

10299
######################################################################
103100
# Rust version
104101
######################################################################
105102

106-
doc/version.md: $(MKFILE_DEPS) $(wildcard $(D)/*.*) | doc/
103+
doc/version.tex: $(MKFILE_DEPS) $(wildcard $(D)/*.*) | doc/
107104
@$(call E, version-stamp: $@)
108105
$(Q)echo "$(CFG_VERSION)" >$@
109106

@@ -115,10 +112,10 @@ doc/version_info.html: $(D)/version_info.html.template $(MKFILE_DEPS) \
115112
$(CFG_VER_HASH) | head -c 8)/;\
116113
s/STAMP/$(CFG_VER_HASH)/;" $< >$@
117114

118-
GENERATED += doc/version.md doc/version_info.html
115+
GENERATED += doc/version.tex doc/version_info.html
119116

120117
######################################################################
121-
# Docs, from rustdoc and sometimes pandoc & node
118+
# Docs, from rustdoc and sometimes pandoc
122119
######################################################################
123120

124121
doc/:
@@ -143,17 +140,17 @@ doc/footer.inc: $(D)/footer.inc | doc/
143140
@$(call E, cp: $@)
144141
$(Q)cp -a $< $@ 2> /dev/null
145142

146-
doc/footer.tex: $(D)/footer.tex | doc/
147-
@$(call E, cp: $@)
148-
$(Q)cp -a $< $@ 2> /dev/null
149-
150143
# The (english) documentation for each doc item.
151144

152145
define DEF_SHOULD_BUILD_PDF_DOC
153146
SHOULD_BUILD_PDF_DOC_$(1) = 1
154147
endef
155148
$(foreach docname,$(PDF_DOCS),$(eval $(call DEF_SHOULD_BUILD_PDF_DOC,$(docname))))
156149

150+
doc/footer.tex: $(D)/footer.inc | doc/
151+
@$(call E, pandoc: $@)
152+
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
153+
157154
define DEF_DOC
158155

159156
# HTML (rustdoc)
@@ -168,22 +165,20 @@ ifneq ($(ONLY_HTML_DOCS),1)
168165
DOC_TARGETS += doc/$(1).epub
169166
doc/$(1).epub: $$(D)/$(1).md | doc/
170167
@$$(call E, pandoc: $$@)
171-
$$(Q)$$(CFG_NODE) $$(D)/prep.js --highlight $$< | \
172-
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) --output=$$@
168+
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) $$< --output=$$@
173169

174170
# PDF (md =(pandoc)=> tex =(pdflatex)=> pdf)
175171
DOC_TARGETS += doc/$(1).tex
176-
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.md | doc/
172+
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/
177173
@$$(call E, pandoc: $$@)
178-
$$(Q)$$(CFG_NODE) $$(D)/prep.js $$< | \
179-
$$(CFG_PANDOC) $$(PANDOC_TEX_OPTS) --output=$$@
174+
$$(CFG_PANDOC) $$(PANDOC_TEX_OPTS) $$< --output=$$@
180175

181176
ifneq ($(NO_PDF_DOCS),1)
182177
ifeq ($$(SHOULD_BUILD_PDF_DOC_$(1)),1)
183178
DOC_TARGETS += doc/$(1).pdf
184179
doc/$(1).pdf: doc/$(1).tex
185-
@$$(call E, pdflatex: $$@)
186-
$$(Q)$$(CFG_PDFLATEX) \
180+
@$$(call E, latex compiler: $$@)
181+
$$(Q)$$(CFG_LATEX) \
187182
-interaction=batchmode \
188183
-output-directory=doc \
189184
$$<

branches/auto/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ CFG_PATH_MUNGE_arm-unknown-linux-gnueabihf := true
330330
CFG_LDPATH_arm-unknown-linux-gnueabihf :=
331331
CFG_RUN_arm-unknown-linux-gnueabihf=$(2)
332332
CFG_RUN_TARG_arm-unknown-linux-gnueabihf=$(call CFG_RUN_arm-unknown-linux-gnueabihf,,$(2))
333-
RUSTC_FLAGS_arm-unknown-linux-gnueabihf :=
333+
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp3
334334
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabihf :=
335335

336336
# arm-unknown-linux-gnueabi configuration

0 commit comments

Comments
 (0)