Skip to content

Commit 34db0c2

Browse files
author
Michael Dagitses
committed
---
yaml --- r: 114286 b: refs/heads/master c: 4353e44 h: refs/heads/master v: v3
1 parent 0ec81f4 commit 34db0c2

File tree

731 files changed

+14306
-23576
lines changed

Some content is hidden

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

731 files changed

+14306
-23576
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: 86b34bca0fa41380f83ce0ad9312bfa7bedfe770
2+
refs/heads/master: 4353e44563151325557593ad6b5352cfacfe8d1c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#
6969
# * `TESTNAME=...` - Specify the name of tests to run
7070
# * `CHECK_IGNORED=1` - Run normally-ignored tests
71-
# * `PLEASE_BENCH=1` - Run crate benchmarks (enable `--bench` flag)
71+
# * `NO_BENCH=1` - Don't run crate benchmarks (disable `--bench` flag)
7272
#
7373
# * `CFG_ENABLE_VALGRIND=1` - Run tests under valgrind
7474
# * `VALGRIND_COMPILE=1` - Run the compiler itself under valgrind

trunk/man/rustc.1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Set lint forbidden
9797
Set internal debugging options. Use "-Z help" to print available options.
9898
.TP
9999
\fB\-C\fR FLAG[=VAL], \fB\-\-codegen\fR FLAG[=VAL]
100-
Set a codegen-related flag to the value specified. Use "-C help" to print
100+
Set a codegen-related flag to the value specifie.d Use "-C help" to print
101101
available flags. See CODEGEN OPTIONS below
102102
.TP
103103
\fB\-v\fR, \fB\-\-version\fR
@@ -119,7 +119,7 @@ is invoked.
119119
.TP
120120
\fBtarget-cpu\fR=help
121121
Selects a target processor. If the value is 'help', then a list of available
122-
CPUs is printed.
122+
cpus is printed.
123123
.TP
124124
\fBtarget-feature\fR='+feature1 -feature2'
125125
A space-separated list of features to enable or disable for the target. A
@@ -132,12 +132,15 @@ cause rustc to print all known passes and exit. The passes specified are
132132
appended at the end of the normal pass manager.
133133
.TP
134134
\fBllvm-args\fR='-arg1 -arg2'
135-
A space-separated list of arguments to pass through to LLVM.
135+
A space-separted list of argument to pass through to LLVM.
136136
.TP
137137
\fBsave-temps\fR
138138
If specified, the compiler will save more files (.bc, .o, .no-opt.bc) generated
139139
throughout compilation in the output directory.
140140
.TP
141+
\fBandroid-cross-path\fR=path/to/ndk/bin
142+
Directory to find the Android NDK cross-compilation tools
143+
.TP
141144
\fBno-rpath\fR
142145
If specified, then the rpath value for dynamic libraries will not be set in
143146
either dynamic library or executable outputs.

trunk/mk/crates.mk

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,37 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core rlibc alloc
54+
workcache url log regex graphviz core
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

5959
DEPS_core :=
60-
DEPS_rlibc :=
61-
DEPS_alloc := core libc native:jemalloc
62-
DEPS_std := core libc alloc native:rustrt native:backtrace
63-
DEPS_graphviz := std
60+
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace native:jemalloc
6461
DEPS_green := std rand native:context_switch
6562
DEPS_rustuv := std native:uv native:uv_support
6663
DEPS_native := std
6764
DEPS_syntax := std term serialize collections log fmt_macros
6865
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
69-
collections time log graphviz
66+
collections time log
7067
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
7168
test time
7269
DEPS_flate := std native:miniz
7370
DEPS_arena := std collections
7471
DEPS_graphviz := std
7572
DEPS_glob := std
7673
DEPS_serialize := std collections log
77-
DEPS_term := std collections log
74+
DEPS_term := std collections
7875
DEPS_semver := std
7976
DEPS_uuid := std serialize rand
80-
DEPS_sync := std alloc
77+
DEPS_sync := std
8178
DEPS_getopts := std
8279
DEPS_collections := std rand
8380
DEPS_fourcc := syntax std
8481
DEPS_hexfloat := syntax std
8582
DEPS_num := std rand
86-
DEPS_test := std collections getopts serialize term time regex
87-
DEPS_time := std serialize sync
83+
DEPS_test := std collections getopts serialize term time
84+
DEPS_time := std serialize
8885
DEPS_rand := std
8986
DEPS_url := std collections
9087
DEPS_workcache := std serialize collections log
@@ -101,8 +98,6 @@ TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
10198
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
10299

103100
ONLY_RLIB_core := 1
104-
ONLY_RLIB_rlibc := 1
105-
ONLY_RLIB_alloc := 1
106101

107102
################################################################################
108103
# You should not need to edit below this line

trunk/mk/docs.mk

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ L10N_LANGS := ja
4242
# Generally no need to edit below here.
4343

4444
# The options are passed to the documentation generators.
45-
RUSTDOC_HTML_OPTS_NO_CSS = --markdown-before-content=doc/version_info.html \
45+
RUSTDOC_HTML_OPTS = --markdown-css rust.css \
46+
--markdown-before-content=doc/version_info.html \
4647
--markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc
4748

48-
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css
49-
5049
PANDOC_BASE_OPTS := --standalone --toc --number-sections
5150
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.tex \
5251
--from=markdown --include-before-body=doc/footer.tex --to=latex
@@ -153,11 +152,6 @@ doc/footer.tex: $(D)/footer.inc | doc/
153152
@$(call E, pandoc: $@)
154153
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
155154

156-
# HTML (rustdoc)
157-
DOC_TARGETS += doc/not_found.html
158-
doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
159-
$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css http://static.rust-lang.org/doc/master/rust.css $<
160-
161155
define DEF_DOC
162156

163157
# HTML (rustdoc)

trunk/mk/main.mk

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=0.11.0
16+
CFG_RELEASE_NUM=0.11
1717
CFG_RELEASE_LABEL=-pre
1818

1919
ifndef CFG_ENABLE_NIGHTLY
@@ -349,45 +349,18 @@ CFGFLAG$(1)_T_$(2)_H_$(3) = stage$(1)
349349
endef
350350

351351
# Same macro/variables as above, but defined in a separate loop so it can use
352-
# all the variables above for all archs. The RPATH_VAR setup sometimes needs to
352+
# all the varibles above for all archs. The RPATH_VAR setup sometimes needs to
353353
# reach across triples to get things in order.
354-
#
355-
# Defines (with the standard $(1)_T_$(2)_H_$(3) suffix):
356-
# * `LD_LIBRARY_PATH_ENV_NAME`: the name for the key to use in the OS
357-
# environment to access or extend the lookup path for dynamic
358-
# libraries. Note on Windows, that key is `$PATH`, and thus not
359-
# only conflates programs with dynamic libraries, but also often
360-
# contains spaces which confuse make.
361-
# * `LD_LIBRARY_PATH_ENV_HOSTDIR`: the entry to add to lookup path for the host
362-
# * `LD_LIBRARY_PATH_ENV_TARGETDIR`: the entry to add to lookup path for target
363-
#
364-
# Below that, HOST_RPATH_VAR and TARGET_RPATH_VAR are defined in terms of the
365-
# above settings.
366-
#
367354
define SREQ_CMDS
368355

369356
ifeq ($$(OSTYPE_$(3)),apple-darwin)
370-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := DYLD_LIBRARY_PATH
371-
else
372-
ifeq ($$(CFG_WINDOWSY_$(2)),1)
373-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := PATH
357+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
358+
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
374359
else
375-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := LD_LIBRARY_PATH
376-
endif
360+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
361+
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
377362
endif
378363

379-
LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3) := \
380-
$$(CURDIR)/$$(HLIB$(1)_H_$(3))
381-
LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3) := \
382-
$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))
383-
384-
HOST_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
385-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))
386-
TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
387-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))
388-
389-
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(HOST_RPATH_VAR$(1)_T_$(2)_H_$(3))
390-
391364
# Pass --cfg stage0 only for the build->host part of stage0;
392365
# if you're building a cross config, the host->* parts are
393366
# effectively stage1, since it uses the just-built stage0.
@@ -403,7 +376,13 @@ ifeq ($(1),0)
403376
ifneq ($(strip $(CFG_BUILD)),$(strip $(3)))
404377
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
405378

406-
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3))
379+
ifeq ($$(OSTYPE_$(3)),apple-darwin)
380+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
381+
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))"
382+
else
383+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
384+
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))"
385+
endif
407386
endif
408387
endif
409388

trunk/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ CFG_LDPATH_arm-linux-androideabi :=
307307
CFG_RUN_arm-linux-androideabi=
308308
CFG_RUN_TARG_arm-linux-androideabi=
309309
RUSTC_FLAGS_arm-linux-androideabi :=
310-
RUSTC_CROSS_FLAGS_arm-linux-androideabi :=
310+
RUSTC_CROSS_FLAGS_arm-linux-androideabi :=-C android-cross-path=$(CFG_ANDROID_CROSS_PATH)
311311

312312
# arm-unknown-linux-gnueabihf configuration
313313
CROSS_PREFIX_arm-unknown-linux-gnueabihf=arm-linux-gnueabihf-

trunk/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ $$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
261261
AR="$$(AR_$(1))" \
262262
RANLIB="$$(AR_$(1)) s" \
263263
CPPFLAGS="-I $(S)src/rt/" \
264-
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1)) -g1"
264+
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1))"
265265
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
266266
$$(Q)cp $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1)) $$(JEMALLOC_LIB_$(1))
267267

trunk/mk/tests.mk

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ ifdef CHECK_IGNORED
3232
TESTARGS += --ignored
3333
endif
3434

35-
TEST_BENCH =
35+
TEST_BENCH = --bench
3636

3737
# Arguments to the cfail/rfail/rpass/bench tests
3838
ifdef CFG_VALGRIND
3939
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
4040
TEST_BENCH =
4141
endif
4242

43-
ifdef PLEASE_BENCH
44-
TEST_BENCH = --bench
43+
ifdef NO_BENCH
44+
TEST_BENCH =
4545
endif
4646

4747
# Arguments to the perf tests
@@ -601,7 +601,6 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
601601
--stage-id stage$(1)-$(2) \
602602
--target $(2) \
603603
--host $(3) \
604-
--android-cross-path=$(CFG_ANDROID_CROSS_PATH) \
605604
--adb-path=$(CFG_ADB) \
606605
--adb-test-dir=$(CFG_ADB_TEST_DIR) \
607606
--host-rustcflags "$(RUSTC_FLAGS_$(3)) $$(CTEST_RUSTC_FLAGS) -L $$(RT_OUTPUT_DIR_$(3))" \
@@ -793,27 +792,8 @@ else
793792
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
794793
endif
795794

796-
# (Issues #13732, #13983, #14000) The doc for the regex crate includes
797-
# uses of the `regex!` macro from the regex_macros crate. There is
798-
# normally a dependence injected that makes the target's regex depend
799-
# upon the host's regex_macros (see #13845), but that dependency
800-
# injection is currently skipped for stage1 as a special case.
801-
#
802-
# Therefore, as a further special case, this conditional skips
803-
# attempting to run the doc tests for the regex crate atop stage1,
804-
# (since there is no regex_macros crate for the stage1 rustc to load).
805-
#
806-
# (Another approach for solving this would be to inject the desired
807-
# dependence for stage1 as well, by setting things up to generate a
808-
# regex_macros crate that was compatible with the stage1 rustc and
809-
# thus re-enable our ability to run this test.)
810-
ifeq (stage$(1)-crate-$(4),stage1-crate-regex)
811-
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec:
812-
@$$(call E, skipping doc-crate-$(4) as it uses macros and cannot run at stage$(1))
813-
else
814795
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec: \
815796
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4))
816-
endif
817797

818798
ifeq ($(2),$$(CFG_BUILD))
819799
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))
@@ -970,10 +950,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
970950
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \
971951
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
972952
"$$(TESTNAME)" \
973-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)) \
974-
"$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))" \
975-
"$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))" \
976-
$(1)
953+
"$$(RPATH_VAR$(1)_T_$(2)_H_$(3))"
977954
@touch $$@
978955
else
979956
# FIXME #11094 - The above rule doesn't work right for multiple targets

0 commit comments

Comments
 (0)