Skip to content

Commit 1e2da4d

Browse files
committed
---
yaml --- r: 171766 b: refs/heads/beta c: 48c6c80 h: refs/heads/master v: v3
1 parent ee40c36 commit 1e2da4d

File tree

817 files changed

+13219
-16371
lines changed

Some content is hidden

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

817 files changed

+13219
-16371
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: ebdf331133af89eef06bede54a5fe53ad4e21af3
34+
refs/heads/beta: 48c6c807955093cc08284d5c1f7abf2a1f62e1fd
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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
56

67
# The test suite is in general way too stressful for travis, especially in
78
# 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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ case $CFG_CPUTYPE in
444444
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
445445
;;
446446

447+
aarch64)
448+
CFG_CPUTYPE=aarch64
449+
;;
450+
447451
x86_64 | x86-64 | x64 | amd64)
448452
CFG_CPUTYPE=x86_64
449453
;;
@@ -988,7 +992,7 @@ do
988992
make_dir $t/rt/jemalloc
989993
for i in \
990994
isaac sync test \
991-
arch/i386 arch/x86_64 arch/arm arch/mips
995+
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
992996
do
993997
make_dir $t/rt/stage$s/$i
994998
done
@@ -1165,7 +1169,7 @@ do
11651169

11661170
msg "configuring LLVM for $gnu_t"
11671171

1168-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
1172+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
11691173
LLVM_BUILD="--build=$gnu_t"
11701174
LLVM_HOST="--host=$gnu_t"
11711175
LLVM_TARGET="--target=$gnu_t"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# aarch64-unknown-linux-gnu configuration
2+
CROSS_PREFIX_aarch64-unknown-linux-gnu=aarch64-linux-gnu-
3+
CC_aarch64-unknown-linux-gnu=gcc
4+
CXX_aarch64-unknown-linux-gnu=g++
5+
CPP_aarch64-unknown-linux-gnu=gcc -E
6+
AR_aarch64-unknown-linux-gnu=ar
7+
CFG_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).so
8+
CFG_STATIC_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).a
9+
CFG_LIB_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.so
10+
CFG_LIB_DSYM_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.dylib.dSYM
11+
CFG_JEMALLOC_CFLAGS_aarch64-unknown-linux-gnu := -D__aarch64__ $(CFLAGS)
12+
CFG_GCCISH_CFLAGS_aarch64-unknown-linux-gnu := -Wall -g -fPIC -D__aarch64__ $(CFLAGS)
13+
CFG_GCCISH_CXXFLAGS_aarch64-unknown-linux-gnu := -fno-rtti $(CXXFLAGS)
14+
CFG_GCCISH_LINK_FLAGS_aarch64-unknown-linux-gnu := -shared -fPIC -g
15+
CFG_GCCISH_DEF_FLAG_aarch64-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list=
16+
CFG_GCCISH_PRE_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-whole-archive
17+
CFG_GCCISH_POST_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-no-whole-archive
18+
CFG_DEF_SUFFIX_aarch64-unknown-linux-gnu := .linux.def
19+
CFG_LLC_FLAGS_aarch64-unknown-linux-gnu :=
20+
CFG_INSTALL_NAME_aarch64-unknown-linux-gnu =
21+
CFG_EXE_SUFFIX_aarch64-unknown-linux-gnu :=
22+
CFG_WINDOWSY_aarch64-unknown-linux-gnu :=
23+
CFG_UNIXY_aarch64-unknown-linux-gnu := 1
24+
CFG_PATH_MUNGE_aarch64-unknown-linux-gnu := true
25+
CFG_LDPATH_aarch64-unknown-linux-gnu :=
26+
CFG_RUN_aarch64-unknown-linux-gnu=$(2)
27+
CFG_RUN_TARG_aarch64-unknown-linux-gnu=$(call CFG_RUN_aarch64-unknown-linux-gnu,,$(2))
28+
RUSTC_FLAGS_aarch64-unknown-linux-gnu :=
29+
RUSTC_CROSS_FLAGS_aarch64-unknown-linux-gnu :=
30+
CFG_GNU_TRIPLE_aarch64-unknown-linux-gnu := aarch64-unknown-linux-gnu

branches/beta/mk/crates.mk

Lines changed: 6 additions & 10 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 time rand \
53+
serialize getopts collections test 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 regex_macros fmt_macros
58+
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc 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-
time log graphviz rustc_llvm rustc_back
78+
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 time
82+
test
8383
DEPS_flate := std native:miniz
8484
DEPS_arena := std
8585
DEPS_graphviz := std
@@ -90,12 +90,10 @@ 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 time regex native:rust_test_helpers
94-
DEPS_time := std serialize
93+
DEPS_test := std getopts serialize rbml term regex native:rust_test_helpers
9594
DEPS_rand := core
9695
DEPS_log := std regex
9796
DEPS_regex := std
98-
DEPS_regex_macros = rustc syntax std regex
9997
DEPS_fmt_macros = std
10098

10199
TOOL_DEPS_compiletest := test getopts
@@ -124,10 +122,8 @@ DOC_CRATES := $(filter-out rustc, \
124122
$(filter-out rustc_driver, \
125123
$(filter-out log, \
126124
$(filter-out regex, \
127-
$(filter-out regex_macros, \
128125
$(filter-out getopts, \
129-
$(filter-out time, \
130-
$(filter-out syntax, $(CRATES)))))))))))))
126+
$(filter-out syntax, $(CRATES)))))))))))
131127
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
132128
rustc_typeck rustc_driver syntax
133129

branches/beta/mk/dist.mk

Lines changed: 5 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
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
2220
# * dist-tar-bins - Ad-hoc Unix binary installers
2321
# * dist-docs - Stage docs for upload
2422

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

108106

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-
211107
######################################################################
212108
# Unix binary installer tarballs
213109
######################################################################
214110

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

217113
define DEF_INSTALLER
218114

@@ -236,6 +132,8 @@ dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
236132
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)/share/doc/rust
237133
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)/share/doc/rust
238134
$$(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
239137

240138
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
241139
@$(call E, build: $$@)
@@ -375,9 +273,9 @@ MAYBE_DIST_DOCS=dist-docs
375273
MAYBE_DISTCHECK_DOCS=distcheck-docs
376274
endif
377275

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

380-
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-win distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
278+
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
381279
$(Q)rm -Rf tmp/distcheck
382280
@echo
383281
@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.regex_macros $(LD)stamp.rustc
40+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(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/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
31+
prepare_install: dist-tar-bins | 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/$(PKG_NAME)-$(CFG_BUILD).tar.gz | tmp/empty_dir
47+
prepare_uninstall: dist-tar-bins | 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 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2014-2015 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=rust-$(CFG_PACKAGE_VERS)
48+
CFG_PACKAGE_NAME=rustc-$(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 mips ipo bitreader bitwriter linker asmparser mcjit \
264+
LLVM_COMPONENTS=x86 arm aarch64 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 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2012-2015 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 mips mipsel),)
180+
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 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 and MIPS crosses, use the toolchain assembler
192+
# For the ARM, AARCH64 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)