Skip to content

Commit e4c32aa

Browse files
committed
---
yaml --- r: 171753 b: refs/heads/beta c: 36c63a3 h: refs/heads/master i: 171751: 46aee16 v: v3
1 parent b2c2f9e commit e4c32aa

File tree

816 files changed

+16367
-13197
lines changed

Some content is hidden

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

816 files changed

+16367
-13197
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 0eb7da758d726cad94bdbb17cfccd96fa9d1fb49
34+
refs/heads/beta: 36c63a3abebce58dd550c0ba032148eac541d64d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
33
# downloads a rust/cargo snapshot, which we don't really want for building rust.
44
language: c
5-
sudo: false
65

76
# The test suite is in general way too stressful for travis, especially in
87
# terms of time limit and reliability. In the past we've tried to scale things

branches/beta/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,14 @@ example, if it's 2014, and you change a Rust file that was created in
4747
// Copyright 2010-2014 The Rust Project Developers.
4848
```
4949

50+
# Coordination and communication
51+
52+
Get feedback from other developers on
53+
[discuss.rust-lang.org][discuss], and
54+
[#rust-internals][pound-rust-internals].
55+
56+
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57+
[discuss]: http://discuss.rust-lang.org
58+
5059
For more details, please refer to
5160
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/beta/configure

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,6 @@ case $CFG_CPUTYPE in
444444
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
445445
;;
446446

447-
aarch64)
448-
CFG_CPUTYPE=aarch64
449-
;;
450-
451447
x86_64 | x86-64 | x64 | amd64)
452448
CFG_CPUTYPE=x86_64
453449
;;
@@ -992,7 +988,7 @@ do
992988
make_dir $t/rt/jemalloc
993989
for i in \
994990
isaac sync test \
995-
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
991+
arch/i386 arch/x86_64 arch/arm arch/mips
996992
do
997993
make_dir $t/rt/stage$s/$i
998994
done
@@ -1169,7 +1165,7 @@ do
11691165

11701166
msg "configuring LLVM for $gnu_t"
11711167

1172-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
1168+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
11731169
LLVM_BUILD="--build=$gnu_t"
11741170
LLVM_HOST="--host=$gnu_t"
11751171
LLVM_TARGET="--target=$gnu_t"

branches/beta/mk/cfg/aarch64-unknown-linux-gnu.mk

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

branches/beta/mk/crates.mk

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

5252
TARGET_CRATES := libc std flate arena term \
53-
serialize getopts collections test rand \
53+
serialize getopts collections test time rand \
5454
log regex graphviz core rbml alloc \
5555
unicode
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5757
rustc_trans rustc_back rustc_llvm
58-
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
58+
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6060
TOOLS := compiletest rustdoc rustc
6161

@@ -75,11 +75,11 @@ DEPS_rustc_typeck := rustc syntax
7575
DEPS_rustc_borrowck := rustc log graphviz syntax
7676
DEPS_rustc_resolve := rustc log syntax
7777
DEPS_rustc := syntax flate arena serialize getopts rbml \
78-
log graphviz rustc_llvm rustc_back
78+
time log graphviz rustc_llvm rustc_back
7979
DEPS_rustc_llvm := native:rustllvm libc std
8080
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8181
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
82-
test
82+
test time
8383
DEPS_flate := std native:miniz
8484
DEPS_arena := std
8585
DEPS_graphviz := std
@@ -90,10 +90,12 @@ DEPS_term := std log
9090
DEPS_getopts := std
9191
DEPS_collections := core alloc unicode
9292
DEPS_num := std
93-
DEPS_test := std getopts serialize rbml term regex native:rust_test_helpers
93+
DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
94+
DEPS_time := std serialize
9495
DEPS_rand := core
9596
DEPS_log := std regex
9697
DEPS_regex := std
98+
DEPS_regex_macros = rustc syntax std regex
9799
DEPS_fmt_macros = std
98100

99101
TOOL_DEPS_compiletest := test getopts
@@ -122,8 +124,10 @@ DOC_CRATES := $(filter-out rustc, \
122124
$(filter-out rustc_driver, \
123125
$(filter-out log, \
124126
$(filter-out regex, \
127+
$(filter-out regex_macros, \
125128
$(filter-out getopts, \
126-
$(filter-out syntax, $(CRATES)))))))))))
129+
$(filter-out time, \
130+
$(filter-out syntax, $(CRATES)))))))))))))
127131
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
128132
rustc_typeck rustc_driver syntax
129133

branches/beta/mk/dist.mk

Lines changed: 107 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# * dist - make all distribution artifacts
1818
# * distcheck - sanity check dist artifacts
1919
# * dist-tar-src - source tarballs
20+
# * dist-win - Windows exe installers
21+
# * dist-osx - OS X .pkg installers
2022
# * dist-tar-bins - Ad-hoc Unix binary installers
2123
# * dist-docs - Stage docs for upload
2224

@@ -104,11 +106,113 @@ distcheck-tar-src: dist-tar-src
104106
$(Q)rm -Rf tmp/distcheck/srccheck
105107

106108

109+
######################################################################
110+
# Windows .exe installer
111+
######################################################################
112+
113+
# FIXME Needs to support all hosts, but making rust.iss compatible looks like a chore
114+
115+
ifdef CFG_ISCC
116+
117+
PKG_EXE = dist/$(PKG_NAME)-$(CFG_BUILD).exe
118+
119+
%.iss: $(S)src/etc/pkg/%.iss
120+
cp $< $@
121+
122+
%.ico: $(S)src/etc/pkg/%.ico
123+
cp $< $@
124+
125+
$(PKG_EXE): rust.iss modpath.iss upgrade.iss LICENSE.txt rust-logo.ico \
126+
$(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
127+
dist-prepare-win
128+
$(Q)rm -rf tmp/dist/win/gcc
129+
$(CFG_PYTHON) $(S)src/etc/make-win-dist.py tmp/dist/win/rust tmp/dist/win/gcc $(CFG_BUILD)
130+
@$(call E, ISCC: $@)
131+
$(Q)$(CFG_ISCC) $<
132+
133+
$(eval $(call DEF_PREPARE,win))
134+
135+
dist-prepare-win: PREPARE_HOST=$(CFG_BUILD)
136+
dist-prepare-win: PREPARE_TARGETS=$(CFG_BUILD)
137+
dist-prepare-win: PREPARE_DEST_DIR=tmp/dist/win/rust
138+
dist-prepare-win: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
139+
dist-prepare-win: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
140+
dist-prepare-win: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
141+
dist-prepare-win: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
142+
dist-prepare-win: PREPARE_CLEAN=true
143+
dist-prepare-win: prepare-base-win
144+
145+
endif
146+
147+
dist-win: $(PKG_EXE)
148+
149+
distcheck-win: dist-win
150+
151+
######################################################################
152+
# OS X .pkg installer
153+
######################################################################
154+
155+
ifeq ($(CFG_OSTYPE), apple-darwin)
156+
157+
define DEF_OSX_PKG
158+
159+
$$(eval $$(call DEF_PREPARE,osx-$(1)))
160+
161+
dist-prepare-osx-$(1): PREPARE_HOST=$(1)
162+
dist-prepare-osx-$(1): PREPARE_TARGETS=$(2)
163+
dist-prepare-osx-$(1): PREPARE_DEST_DIR=tmp/dist/pkgroot-$(1)
164+
dist-prepare-osx-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
165+
dist-prepare-osx-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
166+
dist-prepare-osx-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
167+
dist-prepare-osx-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
168+
dist-prepare-osx-$(1): prepare-base-osx-$(1)
169+
170+
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt \
171+
dist-prepare-osx-$(1) \
172+
tmp/dist/pkgres-$(1)/LICENSE.txt \
173+
tmp/dist/pkgres-$(1)/welcome.rtf \
174+
tmp/dist/pkgres-$(1)/rust-logo.png
175+
@$$(call E, making OS X pkg)
176+
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot-$(1) rust.pkg
177+
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml \
178+
--resources tmp/dist/pkgres-$(1) dist/$(PKG_NAME)-$(1).pkg
179+
$(Q)rm -rf tmp rust.pkg
180+
181+
tmp/dist/pkgres-$(1)/LICENSE.txt: LICENSE.txt
182+
@$$(call E,pkg resource LICENSE.txt)
183+
$(Q)mkdir -p $$(@D)
184+
$(Q)cp $$< $$@
185+
186+
tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
187+
@$$(call E,pkg resource $$*)
188+
$(Q)mkdir -p $$(@D)
189+
$(Q)cp -r $$< $$@
190+
191+
endef
192+
193+
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
194+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(host))))
195+
else
196+
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(TARGET))))
197+
endif
198+
199+
dist-osx: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).pkg)
200+
201+
else
202+
203+
dist-osx:
204+
205+
endif
206+
207+
# FIXME should do something
208+
distcheck-osx: dist-osx
209+
210+
107211
######################################################################
108212
# Unix binary installer tarballs
109213
######################################################################
110214

111-
NON_INSTALLED_PREFIXES=COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,version
215+
NON_INSTALLED_PREFIXES=COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,doc
112216

113217
define DEF_INSTALLER
114218

@@ -132,8 +236,6 @@ dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
132236
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)/share/doc/rust
133237
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)/share/doc/rust
134238
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)/share/doc/rust
135-
# This tiny morsel of metadata is used by rust-packaging
136-
$$(Q)echo "$(CFG_VERSION)" > $$(PREPARE_DEST_DIR)/version
137239

138240
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
139241
@$(call E, build: $$@)
@@ -273,9 +375,9 @@ MAYBE_DIST_DOCS=dist-docs
273375
MAYBE_DISTCHECK_DOCS=distcheck-docs
274376
endif
275377

276-
dist: $(MAYBE_DIST_TAR_SRC) dist-tar-bins $(MAYBE_DIST_DOCS)
378+
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-win dist-tar-bins $(MAYBE_DIST_DOCS)
277379

278-
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
380+
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-win distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
279381
$(Q)rm -Rf tmp/distcheck
280382
@echo
281383
@echo -----------------------------------------------

branches/beta/mk/grammar.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
3737
check-build-lexer-verifier: $(BG)verify
3838

3939
ifeq ($(NO_REBUILD),)
40-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
40+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
4141
else
4242
VERIFY_DEPS :=
4343
endif

branches/beta/mk/install.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endif
2828
# Remove tmp files because it's a decent amount of disk space
2929
$(Q)rm -R tmp/dist
3030

31-
prepare_install: dist-tar-bins | tmp/empty_dir
31+
prepare_install: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
3232

3333
uninstall:
3434
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
@@ -44,7 +44,7 @@ endif
4444
# Remove tmp files because it's a decent amount of disk space
4545
$(Q)rm -R tmp/dist
4646

47-
prepare_uninstall: dist-tar-bins | tmp/empty_dir
47+
prepare_uninstall: dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
4848

4949
.PHONY: install prepare_install uninstall prepare_uninstall
5050

branches/beta/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -45,7 +45,7 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
4545
endif
4646

4747
# The name of the package to use for creating tarballs, installers etc.
48-
CFG_PACKAGE_NAME=rustc-$(CFG_PACKAGE_VERS)
48+
CFG_PACKAGE_NAME=rust-$(CFG_PACKAGE_VERS)
4949

5050
# The version string plus commit information - this is what rustc reports
5151
CFG_VERSION = $(CFG_RELEASE)
@@ -261,7 +261,7 @@ endif
261261
######################################################################
262262

263263
# FIXME: x86-ism
264-
LLVM_COMPONENTS=x86 arm aarch64 mips ipo bitreader bitwriter linker asmparser mcjit \
264+
LLVM_COMPONENTS=x86 arm mips ipo bitreader bitwriter linker asmparser mcjit \
265265
interpreter instrumentation
266266

267267
# Only build these LLVM tools

branches/beta/mk/platform.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -177,7 +177,7 @@ define CFG_MAKE_TOOLCHAIN
177177
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
178178
$$(call CFG_INSTALL_NAME_$(1),$$(4))
179179

180-
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel),)
180+
ifeq ($$(findstring $(HOST_$(1)),arm mips mipsel),)
181181

182182
# We're using llvm-mc as our assembler because it supports
183183
# .cfi pseudo-ops on mac
@@ -189,7 +189,7 @@ define CFG_MAKE_TOOLCHAIN
189189
-o=$$(1)
190190
else
191191

192-
# For the ARM, AARCH64 and MIPS crosses, use the toolchain assembler
192+
# For the ARM and MIPS crosses, use the toolchain assembler
193193
# FIXME: We should be able to use the LLVM assembler
194194
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
195195
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)

0 commit comments

Comments
 (0)