Skip to content

Commit a5c7b35

Browse files
author
Julian Orth
committed
---
yaml --- r: 156567 b: refs/heads/auto c: cea171b h: refs/heads/master i: 156565: e9ad573 156563: 8608735 156559: 2b9cc09 v: v3
1 parent 5d2767b commit a5c7b35

File tree

798 files changed

+19788
-9326
lines changed

Some content is hidden

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

798 files changed

+19788
-9326
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: 56d544f7adc455fc1d7dfaec80315ea44e46d9ae
16+
refs/heads/auto: cea171b0aecfbf982c606ce3d9be09ba8405fbd6
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ documentation.
1010
3. Enjoy!
1111

1212
> ***Note:*** Windows users can read the detailed
13-
> [using Rust on Windows][win-wiki] notes on the wiki.
13+
> [getting started][wiki-start] notes on the wiki.
1414
1515
[installer]: http://www.rust-lang.org/install.html
1616
[guide]: http://doc.rust-lang.org/guide.html
17+
[wiki-start]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
1718
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
1819

1920
## Building from Source
@@ -86,7 +87,7 @@ fetch snapshots, and an OS that can execute the available snapshot binaries.
8687

8788
Snapshot binaries are currently built and tested on several platforms:
8889

89-
* Windows (7, 8, Server 2008 R2), x86 and x86-64 (64-bit support added in Rust 0.12.0)
90+
* Windows (7, 8, Server 2008 R2), x86 only
9091
* Linux (2.6.18 or later, various distributions), x86 and x86-64
9192
* OSX 10.7 (Lion) or greater, x86 and x86-64
9293

branches/auto/configure

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ VAL_OPTIONS=""
411411

412412
opt valgrind 0 "run tests with valgrind (memcheck by default)"
413413
opt helgrind 0 "run tests with helgrind instead of memcheck"
414-
opt valgrind-rpass 1 "run rpass-valgrind tests with valgrind"
415414
opt docs 1 "build documentation"
416415
opt optimize 1 "build optimized rust code"
417416
opt optimize-cxx 1 "build optimized C++ code"
@@ -907,7 +906,6 @@ do
907906
done
908907

909908
make_dir $h/test/run-pass
910-
make_dir $h/test/run-pass-valgrind
911909
make_dir $h/test/run-pass-fulldeps
912910
make_dir $h/test/run-fail
913911
make_dir $h/test/compile-fail
@@ -1237,6 +1235,15 @@ then
12371235
putvar CFG_PANDOC
12381236
fi
12391237

1238+
# Valgrind is only reliable on Linux. On Windows it doesn't work at all, and
1239+
# on the Mac the dynamic linker causes Valgrind to emit a huge stream of
1240+
# errors.
1241+
if [ $CFG_OSTYPE != unknown-linux-gnu ] && [ $CFG_OSTYPE != apple-darwin ]
1242+
then
1243+
CFG_BAD_VALGRIND=1
1244+
putvar CFG_BAD_VALGRIND
1245+
fi
1246+
12401247
putvar CFG_LLVM_ROOT
12411248
putvar CFG_LLVM_SRC_DIR
12421249

branches/auto/mk/crates.mk

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std green native flate arena term \
53-
serialize sync getopts collections test time rand \
54-
log regex graphviz core rbml rlibc alloc rustrt \
52+
TARGET_CRATES := libc std green native flate arena glob term semver \
53+
uuid serialize sync getopts collections num test time rand \
54+
url log regex graphviz core rbml rlibc alloc debug rustrt \
5555
unicode
56-
HOST_CRATES := syntax rustc rustdoc regex_macros fmt_macros \
56+
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros \
5757
rustc_llvm rustc_back
5858
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
@@ -63,33 +63,39 @@ DEPS_libc := core
6363
DEPS_rlibc := core
6464
DEPS_unicode := core
6565
DEPS_alloc := core libc native:jemalloc
66+
DEPS_debug := std
6667
DEPS_rustrt := alloc core libc collections native:rustrt_native
6768
DEPS_std := core libc rand alloc collections rustrt sync unicode \
6869
native:rust_builtin native:backtrace
6970
DEPS_graphviz := std
7071
DEPS_green := std native:context_switch
7172
DEPS_native := std
72-
DEPS_syntax := std term serialize log fmt_macros arena libc
73+
DEPS_syntax := std term serialize log fmt_macros debug arena libc
7374
DEPS_rustc := syntax flate arena serialize getopts rbml \
74-
time log graphviz rustc_llvm rustc_back
75+
time log graphviz debug rustc_llvm rustc_back
7576
DEPS_rustc_llvm := native:rustllvm libc std
7677
DEPS_rustc_back := std syntax rustc_llvm flate log libc
7778
DEPS_rustdoc := rustc native:hoedown serialize getopts \
78-
test time
79+
test time debug
7980
DEPS_flate := std native:miniz
8081
DEPS_arena := std
8182
DEPS_graphviz := std
8283
DEPS_glob := std
8384
DEPS_serialize := std log
8485
DEPS_rbml := std log serialize
8586
DEPS_term := std log
87+
DEPS_semver := std
88+
DEPS_uuid := std serialize
8689
DEPS_sync := core alloc rustrt collections
8790
DEPS_getopts := std
8891
DEPS_collections := core alloc unicode
92+
DEPS_fourcc := rustc syntax std
93+
DEPS_hexfloat := rustc syntax std
8994
DEPS_num := std
9095
DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
9196
DEPS_time := std serialize
9297
DEPS_rand := core
98+
DEPS_url := std
9399
DEPS_log := std regex
94100
DEPS_regex := std
95101
DEPS_regex_macros = rustc syntax std regex

branches/auto/mk/install.mk

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,16 @@ else
1414
MAYBE_DISABLE_VERIFY=
1515
endif
1616

17-
install:
18-
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
19-
# Build the dist as the original user
20-
$(Q)sudo -u "$$SUDO_USER" $(MAKE) prepare_install
21-
else
22-
$(Q)$(MAKE) prepare_install
23-
endif
17+
install: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
2418
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)" "$(MAYBE_DISABLE_VERIFY)"
25-
# Remove tmp files because it's a decent amount of disk space
19+
# Remove tmp files while we can because they may have been created under sudo
2620
$(Q)rm -R tmp/dist
2721

28-
prepare_install: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
29-
30-
uninstall:
31-
ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
32-
# Build the dist as the original user
33-
$(Q)sudo -u "$$SUDO_USER" $(MAKE) prepare_uninstall
34-
else
35-
$(Q)$(MAKE) prepare_uninstall
36-
endif
22+
uninstall: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
3723
$(Q)cd tmp/empty_dir && sh ../../tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)"
38-
# Remove tmp files because it's a decent amount of disk space
24+
# Remove tmp files while we can because they may have been created under sudo
3925
$(Q)rm -R tmp/dist
4026

41-
prepare_uninstall: dist-install-dir-$(CFG_BUILD) | tmp/empty_dir
42-
43-
.PHONY: install prepare_install uninstall prepare_uninstall
44-
4527
tmp/empty_dir:
4628
mkdir -p $@
4729

branches/auto/mk/main.mk

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,6 @@ RUSTFLAGS_STAGE1 += -C prefer-dynamic
157157
# by not emitting them.
158158
RUSTFLAGS_STAGE0 += -Z no-landing-pads
159159

160-
# Go fast for stage0, and also for stage1/stage2 if optimization is off.
161-
RUSTFLAGS_STAGE0 += -C codegen-units=4
162-
ifdef CFG_DISABLE_OPTIMIZE
163-
RUSTFLAGS_STAGE1 += -C codegen-units=4
164-
RUSTFLAGS_STAGE2 += -C codegen-units=4
165-
endif
166-
167160
# platform-specific auto-configuration
168161
include $(CFG_SRC_DIR)mk/platform.mk
169162

@@ -174,20 +167,16 @@ else
174167
CFG_VALGRIND_COMPILE :=
175168
endif
176169

177-
178-
ifndef CFG_DISABLE_VALGRIND_RPASS
179-
$(info cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS))
180-
CFG_VALGRIND_RPASS :=$(CFG_VALGRIND)
181-
else
182-
CFG_VALGRIND_RPASS :=
183-
endif
184-
185-
186170
ifdef CFG_ENABLE_VALGRIND
187171
$(info cfg: enabling valgrind (CFG_ENABLE_VALGRIND))
188172
else
189173
CFG_VALGRIND :=
190174
endif
175+
ifdef CFG_BAD_VALGRIND
176+
$(info cfg: disabling valgrind due to its unreliability on this platform)
177+
CFG_VALGRIND :=
178+
endif
179+
191180

192181
######################################################################
193182
# Target-and-rule "utility variables"

branches/auto/mk/platform.mk

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,6 @@ ifdef CFG_VALGRIND
5858
endif
5959
endif
6060

61-
# If we actually want to run Valgrind on a given platform, set this variable
62-
define DEF_GOOD_VALGRIND
63-
ifeq ($(OSTYPE_$(1)),unknown-linux-gnu)
64-
GOOD_VALGRIND_$(1) = 1
65-
endif
66-
ifneq (,$(filter $(OSTYPE_$(1)),darwin freebsd))
67-
ifeq (HOST_$(1),x86_64)
68-
GOOD_VALGRIND_$(1) = 1
69-
endif
70-
endif
71-
endef
72-
$(foreach t,$(CFG_TARGET),$(eval $(call DEF_GOOD_VALGRIND,$(t))))
73-
$(foreach t,$(CFG_TARGET),$(info cfg: good valgrind for $(t) is $(GOOD_VALGRIND_$(t))))
74-
7561
ifneq ($(findstring linux,$(CFG_OSTYPE)),)
7662
ifdef CFG_PERF
7763
ifneq ($(CFG_PERF_WITH_LOGFD),)

branches/auto/mk/rt.mk

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,16 @@ endif
284284
# ./configure script. This is done to force libbacktrace to *not* use the
285285
# atomic/sync functionality because it pulls in unnecessary dependencies and we
286286
# never use it anyway.
287+
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: \
288+
export CFLAGS:=$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) \
289+
-fno-stack-protector
290+
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export CC:=$$(CC_$(1))
291+
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export AR:=$$(AR_$(1))
292+
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export RANLIB:=$$(AR_$(1)) s
287293
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: $$(BACKTRACE_DEPS) $$(MKFILE_DEPS)
288-
@$$(call E, configure: libbacktrace for $(1))
289294
$$(Q)rm -rf $$(BACKTRACE_BUILD_DIR_$(1))
290295
$$(Q)mkdir -p $$(BACKTRACE_BUILD_DIR_$(1))
291296
$$(Q)(cd $$(BACKTRACE_BUILD_DIR_$(1)) && \
292-
CC="$$(CC_$(1))" \
293-
AR="$$(AR_$(1))" \
294-
RANLIB="$$(AR_$(1)) s" \
295-
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) -fno-stack-protector" \
296297
$(S)src/libbacktrace/configure --target=$(1) --host=$(CFG_BUILD))
297298
$$(Q)echo '#undef HAVE_ATOMIC_FUNCTIONS' >> \
298299
$$(BACKTRACE_BUILD_DIR_$(1))/config.h

0 commit comments

Comments
 (0)