Skip to content

Commit c8f92ee

Browse files
committed
---
yaml --- r: 108767 b: refs/heads/dist-snap c: bc35eb7 h: refs/heads/master i: 108765: bd255c0 108763: 35d1c45 108759: 68a3873 108751: 4956337 108735: af4a0f9 v: v3
1 parent 761fe4a commit c8f92ee

File tree

701 files changed

+13799
-19199
lines changed

Some content is hidden

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

701 files changed

+13799
-19199
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 999d55d5f6e229b8c1118ac35c8cbf3b9c59e3a1
9+
refs/heads/dist-snap: bc35eb78e2dab6b7cb3ede9176b0cfcafc4f8362
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config.mk
6060
/rt/
6161
/rustllvm/
6262
/test/
63-
/build
63+
/build/
6464
/inst/
6565
/mingw-build/
6666
src/.DS_Store

branches/dist-snap/.travis.yml

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

branches/dist-snap/AUTHORS.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Adrien Tétar <[email protected]>
77
Alan Andrade <[email protected]>
88
Aleksander Balicki <[email protected]>
99
Alex Crichton <[email protected]>
10-
Alex Lyon <[email protected]>
1110
Alex Rønne Petersen <[email protected]>
1211
Alexander Stavonin <[email protected]>
1312
Alexandros Tasos <[email protected]>

branches/dist-snap/Makefile.in

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@
1919
#
2020
# First, start with one of these build targets:
2121
#
22-
# * all - The default. Build a complete, bootstrapped compiler.
22+
# * all - The default. Builds a complete, bootstrapped compiler.
2323
# `rustc` will be in `${target-triple}/stage2/bin/`. Run it
2424
# directly from the build directory if you like. This also
2525
# comes with docs in `doc/`.
2626
#
2727
# * check - Run the complete test suite
2828
#
29-
# * clean - Clean the build repertory. It is advised to run this
30-
# command if you want to build Rust again, after an update
31-
# of the git repository.
32-
#
3329
# * install - Install Rust. Note that installation is not necessary
3430
# to use the compiler.
3531
#
@@ -107,7 +103,7 @@
107103
#
108104
# </tips>
109105
#
110-
# <nitty-gritty>
106+
# <nittygritty>
111107
#
112108
# # The Rust Build System
113109
#
@@ -156,12 +152,12 @@
156152
# libraries are managed and versioned without polluting the common
157153
# areas of the filesystem.
158154
#
159-
# General rust binaries may still live in the host bin directory; they
155+
# General rust binaries may stil live in the host bin directory; they
160156
# will just link against the libraries in the target lib directory.
161157
#
162158
# Admittedly this is a little convoluted.
163159
#
164-
# </nitty-gritty>
160+
# </nittygritty>
165161
#
166162

167163
######################################################################
@@ -202,6 +198,16 @@ include $(CFG_SRC_DIR)mk/llvm.mk
202198
# Secondary makefiles, conditionalized for speed
203199
######################################################################
204200

201+
# Source and binary distribution artifacts
202+
ifneq ($(strip $(findstring dist,$(MAKECMDGOALS)) \
203+
$(findstring check,$(MAKECMDGOALS)) \
204+
$(findstring test,$(MAKECMDGOALS)) \
205+
$(findstring tidy,$(MAKECMDGOALS)) \
206+
$(findstring clean,$(MAKECMDGOALS))),)
207+
CFG_INFO := $(info cfg: including dist rules)
208+
include $(CFG_SRC_DIR)mk/dist.mk
209+
endif
210+
205211
# Binary snapshots
206212
ifneq ($(strip $(findstring snap,$(MAKECMDGOALS)) \
207213
$(findstring clean,$(MAKECMDGOALS))),)
@@ -224,33 +230,18 @@ ifneq ($(findstring perf,$(MAKECMDGOALS)),)
224230
include $(CFG_SRC_DIR)mk/perf.mk
225231
endif
226232

227-
# Copy all the distributables to another directory for binary install
228-
ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
229-
$(findstring dist,$(MAKECMDGOALS)) \
230-
$(findstring install,$(MAKECMDGOALS))),)
231-
CFG_INFO := $(info cfg: including prepare rules)
232-
include $(CFG_SRC_DIR)mk/prepare.mk
233+
# Cleaning
234+
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
235+
CFG_INFO := $(info cfg: including clean rules)
236+
include $(CFG_SRC_DIR)mk/clean.mk
233237
endif
234238

235-
# (Unix) Installation from the build directory
239+
# Installation from the build directory
236240
ifneq ($(findstring install,$(MAKECMDGOALS)),)
237241
CFG_INFO := $(info cfg: including install rules)
238242
include $(CFG_SRC_DIR)mk/install.mk
239243
endif
240244

241-
# Source and binary distribution artifacts
242-
ifneq ($(strip $(findstring dist,$(MAKECMDGOALS)) \
243-
$(findstring clean,$(MAKECMDGOALS))),)
244-
CFG_INFO := $(info cfg: including dist rules)
245-
include $(CFG_SRC_DIR)mk/dist.mk
246-
endif
247-
248-
# Cleaning
249-
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
250-
CFG_INFO := $(info cfg: including clean rules)
251-
include $(CFG_SRC_DIR)mk/clean.mk
252-
endif
253-
254245
# CTAGS building
255246
ifneq ($(strip $(findstring TAGS.emacs,$(MAKECMDGOALS)) \
256247
$(findstring TAGS.vi,$(MAKECMDGOALS))),)

branches/dist-snap/configure

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ then
604604
LLVM_VERSION=$($LLVM_CONFIG --version)
605605

606606
case $LLVM_VERSION in
607-
(3.[2-5]svn|3.[2-5])
607+
(3.[2-4]svn|3.[2-4])
608608
msg "found ok version of LLVM: $LLVM_VERSION"
609609
;;
610610
(*)
@@ -626,7 +626,7 @@ then
626626
| cut -d ' ' -f 2)
627627

628628
case $CFG_CLANG_VERSION in
629-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* )
629+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* )
630630
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
631631
CFG_C_COMPILER="clang"
632632
;;
@@ -803,6 +803,7 @@ do
803803
make_dir $h/test/doc-guide-pointers
804804
make_dir $h/test/doc-guide-container
805805
make_dir $h/test/doc-guide-tasks
806+
make_dir $h/test/doc-guide-conditions
806807
make_dir $h/test/doc-complement-cheatsheet
807808
make_dir $h/test/doc-rust
808809
done

branches/dist-snap/mk/clean.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ clean-generic-$(2)-$(1):
5858
-name '*.[odasS]' -o \
5959
-name '*.so' -o \
6060
-name '*.dylib' -o \
61-
-name '*.rlib' -o \
6261
-name 'stamp.*' -o \
6362
-name '*.lib' -o \
6463
-name '*.dll' -o \

branches/dist-snap/mk/crates.mk

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

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

5858
DEPS_std := native:rustrt native:compiler-rt
59-
DEPS_extra := std term sync serialize getopts collections time
59+
DEPS_extra := std term sync serialize getopts collections
6060
DEPS_green := std native:context_switch
6161
DEPS_rustuv := std native:uv native:uv_support
6262
DEPS_native := std
6363
DEPS_syntax := std term serialize collections
6464
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
65-
collections time extra
66-
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
67-
test time
68-
DEPS_flate := std extra native:miniz
65+
collections extra
66+
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections
67+
DEPS_flate := std native:miniz
6968
DEPS_arena := std collections
7069
DEPS_glob := std
71-
DEPS_serialize := std collections
72-
DEPS_term := std collections
70+
DEPS_serialize := std
71+
DEPS_term := std
7372
DEPS_semver := std
7473
DEPS_uuid := std serialize
7574
DEPS_sync := std
7675
DEPS_getopts := std
77-
DEPS_collections := std
76+
DEPS_collections := std serialize
7877
DEPS_fourcc := syntax std
79-
DEPS_num := std
80-
DEPS_test := std extra collections getopts serialize term
81-
DEPS_time := std serialize
78+
DEPS_num := std extra
8279

83-
TOOL_DEPS_compiletest := test green rustuv getopts
84-
TOOL_DEPS_rustdoc := rustdoc native
85-
TOOL_DEPS_rustc := rustc native
80+
TOOL_DEPS_compiletest := extra green rustuv getopts
81+
TOOL_DEPS_rustdoc := rustdoc green rustuv
82+
TOOL_DEPS_rustc := rustc green rustuv
8683
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
8784
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
8885
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs

branches/dist-snap/mk/dist.mk

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
1212
PKG_EXE = $(PKG_DIR)-install.exe
1313
endif
1414

15-
ifeq ($(CFG_OSTYPE), apple-darwin)
16-
PKG_OSX = $(PKG_DIR).pkg
17-
endif
18-
1915
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
2016

2117
PKG_FILES := \
@@ -28,10 +24,10 @@ PKG_FILES := \
2824
$(S)RELEASES.txt \
2925
$(S)configure $(S)Makefile.in \
3026
$(S)man \
27+
$(S)doc \
3128
$(addprefix $(S)src/, \
3229
README.md \
3330
compiletest \
34-
doc \
3531
driver \
3632
etc \
3733
$(foreach crate,$(CRATES),lib$(crate)) \
@@ -45,36 +41,24 @@ PKG_FILES := \
4541

4642
UNROOTED_PKG_FILES := $(patsubst $(S)%,./%,$(PKG_FILES))
4743

44+
ifdef CFG_ISCC
4845
LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
4946
cat $^ > $@
5047

51-
ifdef CFG_ISCC
5248
%.iss: $(S)src/etc/pkg/%.iss
5349
cp $< $@
5450

5551
%.ico: $(S)src/etc/pkg/%.ico
5652
cp $< $@
5753

5854
$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
59-
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
60-
dist-prepare-win
61-
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py tmp/dist/win/bin
55+
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD))
56+
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py i686-pc-mingw32/stage3/bin
6257
@$(call E, ISCC: $@)
6358
$(Q)"$(CFG_ISCC)" $<
64-
65-
dist-prepare-win: PREPARE_HOST=$(CFG_BUILD)
66-
dist-prepare-win: PREPARE_TARGETS=$(CFG_BUILD)
67-
dist-prepare-win: PREPARE_DEST_DIR=tmp/dist/win
68-
# On windows we're using stage3, unlike Unix...
69-
dist-prepare-win: PREPARE_STAGE=3
70-
dist-prepare-win: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
71-
dist-prepare-win: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
72-
dist-prepare-win: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
73-
dist-prepare-win: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
74-
dist-prepare-win: prepare-base
75-
7659
endif
7760

61+
7862
$(PKG_TAR): $(PKG_FILES)
7963
@$(call E, making dist dir)
8064
$(Q)rm -Rf dist
@@ -107,7 +91,7 @@ distcheck: dist
10791

10892
else
10993

110-
dist: $(PKG_TAR) $(PKG_OSX)
94+
dist: $(PKG_TAR)
11195

11296
distcheck: $(PKG_TAR)
11397
$(Q)rm -Rf dist
@@ -128,31 +112,3 @@ distcheck: $(PKG_TAR)
128112
@echo -----------------------------------------------
129113

130114
endif
131-
132-
ifeq ($(CFG_OSTYPE), apple-darwin)
133-
134-
dist-prepare-osx: PREPARE_HOST=$(CFG_BUILD)
135-
dist-prepare-osx: PREPARE_TARGETS=$(CFG_BUILD)
136-
dist-prepare-osx: PREPARE_DEST_DIR=tmp/dist/pkgroot
137-
dist-prepare-osx: PREPARE_STAGE=2
138-
dist-prepare-osx: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
139-
dist-prepare-osx: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
140-
dist-prepare-osx: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
141-
dist-prepare-osx: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
142-
dist-prepare-osx: prepare-base
143-
144-
$(PKG_OSX): Distribution.xml LICENSE.txt dist-prepare-osx
145-
@$(call E, making OS X pkg)
146-
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot rust.pkg
147-
$(Q)productbuild --distribution Distribution.xml --resources . $(PKG_OSX)
148-
$(Q)rm -rf tmp rust.pkg
149-
150-
dist-osx: $(PKG_OSX)
151-
152-
distcheck-osx: $(PKG_OSX)
153-
@echo
154-
@echo -----------------------------------------------
155-
@echo $(PKG_OSX) ready for distribution
156-
@echo -----------------------------------------------
157-
158-
endif

0 commit comments

Comments
 (0)