Skip to content

Commit bd9a0aa

Browse files
committed
---
yaml --- r: 120511 b: refs/heads/dist-snap c: 6ecf7d9 h: refs/heads/master i: 120509: 293d7df 120507: 83474c6 120503: 7990a45 120495: 8f54093 120479: cf8fca2 120447: 53309f3 v: v3
1 parent ad4f927 commit bd9a0aa

File tree

1,358 files changed

+50975
-41455
lines changed

Some content is hidden

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

1,358 files changed

+50975
-41455
lines changed

[refs]

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

branches/dist-snap/.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
src/etc/pkg/rust-logo.ico binary
88
src/etc/pkg/rust-logo.png binary
99
src/rt/msvc/* -whitespace
10-
src/rt/vg/* -whitespace
11-
src/rt/jemalloc/**/* -whitespace
10+
src/rt/valgrind/* -whitespace

branches/dist-snap/.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@
1212
[submodule "src/compiler-rt"]
1313
path = src/compiler-rt
1414
url = https://github.com/rust-lang/compiler-rt.git
15+
[submodule "src/rt/hoedown"]
16+
path = src/rt/hoedown
17+
url = https://github.com/rust-lang/hoedown.git
18+
[submodule "src/jemalloc"]
19+
path = src/jemalloc
20+
url = https://github.com/rust-lang/jemalloc.git

branches/dist-snap/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-
# * `NO_BENCH=1` - Don't run crate benchmarks (disable `--bench` flag)
71+
# * `PLEASE_BENCH=1` - Run crate benchmarks (enable `--bench` flag)
7272
#
7373
# * `CFG_ENABLE_VALGRIND=1` - Run tests under valgrind
7474
# * `VALGRIND_COMPILE=1` - Run the compiler itself under valgrind

branches/dist-snap/configure

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,26 @@ probe CFG_PDFLATEX pdflatex
466466
probe CFG_XELATEX xelatex
467467
probe CFG_LUALATEX lualatex
468468
probe CFG_GDB gdb
469+
probe CFG_LLDB lldb
470+
471+
if [ ! -z "$CFG_LLDB" ]
472+
then
473+
# If CFG_LLDB_PYTHON_DIR is not already set from the outside and valid, try to read it from
474+
# LLDB via the -P commandline options.
475+
if [ -z "$CFG_LLDB_PYTHON_DIR" ] || [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
476+
then
477+
CFG_LLDB_PYTHON_DIR=$($CFG_LLDB -P)
478+
479+
# If CFG_LLDB_PYTHON_DIR is not a valid directory, set it to something more readable
480+
if [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
481+
then
482+
CFG_LLDB_PYTHON_DIR="LLDB_PYTHON_DIRECTORY_NOT_FOUND"
483+
fi
484+
485+
putvar CFG_LLDB_PYTHON_DIR
486+
fi
487+
fi
488+
469489
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
470490
then
471491
probe CFG_PAXCTL paxctl /sbin/paxctl
@@ -762,6 +782,7 @@ do
762782
for s in 0 1 2 3
763783
do
764784
make_dir $t/rt/stage$s
785+
make_dir $t/rt/jemalloc
765786
make_dir $t/rt/libuv
766787
make_dir $t/rt/libuv/src/ares
767788
make_dir $t/rt/libuv/src/eio
@@ -803,10 +824,12 @@ do
803824
make_dir $h/test/run-pass-fulldeps
804825
make_dir $h/test/run-fail
805826
make_dir $h/test/compile-fail
827+
make_dir $h/test/compile-fail-fulldeps
806828
make_dir $h/test/bench
807829
make_dir $h/test/perf
808830
make_dir $h/test/pretty
809-
make_dir $h/test/debug-info
831+
make_dir $h/test/debuginfo-gdb
832+
make_dir $h/test/debuginfo-lldb
810833
make_dir $h/test/codegen
811834
make_dir $h/test/doc-tutorial
812835
make_dir $h/test/doc-guide-ffi

branches/dist-snap/man/rustc.1

Lines changed: 3 additions & 6 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 specifie.d Use "-C help" to print
100+
Set a codegen-related flag to the value specified. 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,15 +132,12 @@ 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-separted list of argument to pass through to LLVM.
135+
A space-separated list of arguments 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
144141
\fBno-rpath\fR
145142
If specified, then the rpath value for dynamic libraries will not be set in
146143
either dynamic library or executable outputs.

branches/dist-snap/mk/crates.mk

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
4040
# Rust dependencies are listed bare (i.e. std, green) and native
41-
# dependencies have a "native:" prefix (i.e. native:sundown). All deps
41+
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
4444
# TOOL_DEPS_<tool>/TOOL_SOURCE_<tool>
@@ -51,42 +51,47 @@
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
55-
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
54+
workcache url log regex graphviz core rlibc alloc
55+
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

59-
DEPS_std := libc native:rustrt native:compiler-rt native:backtrace
59+
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
6064
DEPS_green := std rand native:context_switch
6165
DEPS_rustuv := std native:uv native:uv_support
6266
DEPS_native := std
63-
DEPS_syntax := std term serialize collections log
67+
DEPS_syntax := std term serialize collections log fmt_macros
6468
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
65-
collections time log
66-
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
69+
collections time log graphviz
70+
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
6771
test time
6872
DEPS_flate := std native:miniz
6973
DEPS_arena := std collections
7074
DEPS_graphviz := std
7175
DEPS_glob := std
7276
DEPS_serialize := std collections log
73-
DEPS_term := std collections
77+
DEPS_term := std collections log
7478
DEPS_semver := std
7579
DEPS_uuid := std serialize rand
76-
DEPS_sync := std
80+
DEPS_sync := std alloc
7781
DEPS_getopts := std
7882
DEPS_collections := std rand
7983
DEPS_fourcc := syntax std
8084
DEPS_hexfloat := syntax std
8185
DEPS_num := std rand
82-
DEPS_test := std collections getopts serialize term time
83-
DEPS_time := std serialize
86+
DEPS_test := std collections getopts serialize term time regex
87+
DEPS_time := std serialize sync
8488
DEPS_rand := std
8589
DEPS_url := std collections
8690
DEPS_workcache := std serialize collections log
8791
DEPS_log := std sync
8892
DEPS_regex := std collections
8993
DEPS_regex_macros = syntax std regex
94+
DEPS_fmt_macros = std
9095

9196
TOOL_DEPS_compiletest := test green rustuv getopts
9297
TOOL_DEPS_rustdoc := rustdoc native
@@ -95,6 +100,10 @@ TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
95100
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
96101
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
97102

103+
ONLY_RLIB_core := 1
104+
ONLY_RLIB_rlibc := 1
105+
ONLY_RLIB_alloc := 1
106+
98107
################################################################################
99108
# You should not need to edit below this line
100109
################################################################################

branches/dist-snap/mk/dist.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3535

3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

38-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
39+
$(S)src/rt/hoedown $(S)src/jemalloc
3940
PKG_FILES := \
4041
$(S)COPYRIGHT \
4142
$(S)LICENSE-APACHE \

branches/dist-snap/mk/docs.mk

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ 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 = --markdown-css rust.css \
46-
--markdown-before-content=doc/version_info.html \
45+
RUSTDOC_HTML_OPTS_NO_CSS = --markdown-before-content=doc/version_info.html \
4746
--markdown-in-header=doc/favicon.inc --markdown-after-content=doc/footer.inc
4847

48+
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css
49+
4950
PANDOC_BASE_OPTS := --standalone --toc --number-sections
5051
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.tex \
5152
--from=markdown --include-before-body=doc/footer.tex --to=latex
@@ -141,26 +142,6 @@ doc/footer.inc: $(D)/footer.inc | doc/
141142
@$(call E, cp: $@)
142143
$(Q)cp -a $< $@ 2> /dev/null
143144

144-
doc/FiraSans-Regular.woff: $(D)/FiraSans-Regular.woff | doc/
145-
@$(call E, cp: $@)
146-
$(Q)cp -a $< $@ 2> /dev/null
147-
148-
doc/FiraSans-Medium.woff: $(D)/FiraSans-Medium.woff | doc/
149-
@$(call E, cp: $@)
150-
$(Q)cp -a $< $@ 2> /dev/null
151-
152-
doc/Heuristica-Regular.woff: $(D)/Heuristica-Regular.woff | doc/
153-
@$(call E, cp: $@)
154-
$(Q)cp -a $< $@ 2> /dev/null
155-
156-
doc/Heuristica-Italic.woff: $(D)/Heuristica-Italic.woff | doc/
157-
@$(call E, cp: $@)
158-
$(Q)cp -a $< $@ 2> /dev/null
159-
160-
doc/Heuristica-Bold.woff: $(D)/Heuristica-Bold.woff | doc/
161-
@$(call E, cp: $@)
162-
$(Q)cp -a $< $@ 2> /dev/null
163-
164145
# The (english) documentation for each doc item.
165146

166147
define DEF_SHOULD_BUILD_PDF_DOC
@@ -172,6 +153,11 @@ doc/footer.tex: $(D)/footer.inc | doc/
172153
@$(call E, pandoc: $@)
173154
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
174155

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+
175161
define DEF_DOC
176162

177163
# HTML (rustdoc)

branches/dist-snap/mk/host.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# $(5) - the name of the crate being processed
1919
define CP_HOST_STAGE_N_CRATE
2020

21+
ifeq ($$(ONLY_RLIB_$(5)),)
2122
$$(HLIB$(2)_H_$(4))/stamp.$(5): \
2223
$$(TLIB$(1)_T_$(3)_H_$(4))/stamp.$(5) \
2324
$$(RUST_DEPS_$(5):%=$$(HLIB$(2)_H_$(4))/stamp.%) \
@@ -30,6 +31,10 @@ $$(HLIB$(2)_H_$(4))/stamp.$(5): \
3031
$$(HLIB$(2)_H_$(4))
3132
$$(call LIST_ALL_OLD_GLOB_MATCHES,\
3233
$$(dir $$@)$$(call CFG_LIB_GLOB_$(3),$(5)))
34+
else
35+
$$(HLIB$(2)_H_$(4))/stamp.$(5):
36+
$$(Q)touch $$@
37+
endif
3338

3439
endef
3540

@@ -54,9 +59,6 @@ endef
5459
# $(4) - the host triple (same as $(3))
5560
define CP_HOST_STAGE_N
5661

57-
$$(HBIN$(2)_H_$(4))/:
58-
@mkdir -p $$@
59-
6062
ifneq ($(CFG_LIBDIR_RELATIVE),bin)
6163
$$(HLIB$(2)_H_$(4))/:
6264
@mkdir -p $$@

branches/dist-snap/mk/main.mk

Lines changed: 34 additions & 13 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
16+
CFG_RELEASE_NUM=0.11.0
1717
CFG_RELEASE_LABEL=-pre
1818

1919
ifndef CFG_ENABLE_NIGHTLY
@@ -349,18 +349,45 @@ 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 varibles above for all archs. The RPATH_VAR setup sometimes needs to
352+
# all the variables 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+
#
354367
define SREQ_CMDS
355368

356369
ifeq ($$(OSTYPE_$(3)),apple-darwin)
357-
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
358-
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
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
359374
else
360-
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
361-
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
375+
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := LD_LIBRARY_PATH
376+
endif
362377
endif
363378

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+
364391
# Pass --cfg stage0 only for the build->host part of stage0;
365392
# if you're building a cross config, the host->* parts are
366393
# effectively stage1, since it uses the just-built stage0.
@@ -376,13 +403,7 @@ ifeq ($(1),0)
376403
ifneq ($(strip $(CFG_BUILD)),$(strip $(3)))
377404
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
378405

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
406+
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3))
386407
endif
387408
endif
388409

0 commit comments

Comments
 (0)