Skip to content

Commit fec8b2b

Browse files
committed
---
yaml --- r: 156534 b: refs/heads/master c: 0525bb7 h: refs/heads/master v: v3
1 parent 5b39445 commit fec8b2b

File tree

738 files changed

+18304
-8435
lines changed

Some content is hidden

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

738 files changed

+18304
-8435
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a10917a6a9b087d10ac4fd0186b719218627281e
2+
refs/heads/master: 0525bb76690232ce1ce2a3918ce031e2058c41dc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d44ea720fa9dfe062ef06d0eb49a58d4e7e92344
55
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75

trunk/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

trunk/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

trunk/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

trunk/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"

trunk/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),)

trunk/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)