Skip to content

Commit 5a35f28

Browse files
committed
---
yaml --- r: 212922 b: refs/heads/master c: 467e4a6 h: refs/heads/master v: v3
1 parent 3281ee9 commit 5a35f28

File tree

616 files changed

+10962
-18067
lines changed

Some content is hidden

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

616 files changed

+10962
-18067
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: 4d3cffa3cfff646fe707363ef9f2bd10f0d0bca7
2+
refs/heads/master: 467e4a6681f8ac3b29fa28406ece66418e1b703d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ before_script:
1616
script:
1717
- make tidy
1818

19+
# Real testing happens on http://buildbot.rust-lang.org/
20+
#
21+
# See https://github.com/rust-lang/rust-buildbot
22+
# CONTRIBUTING.md#pull-requests
23+
1924
notifications:
2025
email: false
2126

trunk/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Hajime Morrita <[email protected]>
338338
Hanno Braun <[email protected]>
339339
Harry Marr <[email protected]>
340340
341-
Heejong Ahn <[email protected]
341+
Heejong Ahn <[email protected]>
342342
Henrik Schopmans <[email protected]>
343343
Herman J. Radtke III <[email protected]>
344344
HeroesGrave <[email protected]>

trunk/RELEASES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
Version 1.1.0 (July 2015)
2+
========================
3+
4+
* NNNN changes, numerous bugfixes
5+
6+
Libraries
7+
---------
8+
9+
* The [`std::fs` module has been expanded][fs-expand] to expand the set of
10+
functionality exposed:
11+
* `DirEntry` now supports optimizations like `file_type` and `metadata` which
12+
don't incur a syscall on some platforms.
13+
* A `symlink_metadata` function has been added.
14+
* The `fs::Metadata` structure now lowers to its OS counterpart, providing
15+
access to all underlying information.
16+
17+
[fs-expand]: https://github.com/rust-lang/rust/pull/25844
18+
119
Version 1.0.0 (May 2015)
220
========================
321

trunk/configure

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ fi
521521
DEFAULT_BUILD="${CFG_CPUTYPE}-${CFG_OSTYPE}"
522522

523523
CFG_SRC_DIR="$(abs_path $(dirname $0))/"
524+
CFG_SRC_DIR_RELATIVE="$(dirname $0)/"
524525
CFG_BUILD_DIR="$(pwd)/"
525526
CFG_SELF="$0"
526527
CFG_CONFIGURE_ARGS="$@"
@@ -582,6 +583,7 @@ valopt sysconfdir "/etc" "install system configuration files"
582583
valopt datadir "${CFG_PREFIX}/share" "install data"
583584
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
584585
valopt llvm-root "" "set LLVM root"
586+
valopt python "" "set path to python"
585587
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
586588
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
587589
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
@@ -695,7 +697,9 @@ putvar CFG_BOOTSTRAP_KEY
695697
step_msg "looking for build programs"
696698

697699
probe_need CFG_CURLORWGET curl wget
698-
probe_need CFG_PYTHON python2.7 python2.6 python2 python
700+
if [ -z "$CFG_PYTHON_PROVIDED" ]; then
701+
probe_need CFG_PYTHON python2.7 python2.6 python2 python
702+
fi
699703

700704
python_version=$($CFG_PYTHON -V 2>&1)
701705
if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
@@ -849,13 +853,6 @@ then
849853
putvar CFG_LOCAL_RUST_ROOT
850854
fi
851855

852-
# Force freebsd to build with clang; gcc doesn't like us there
853-
if [ $CFG_OSTYPE = unknown-freebsd ]
854-
then
855-
step_msg "on FreeBSD, forcing use of clang"
856-
CFG_ENABLE_CLANG=1
857-
fi
858-
859856
# Force bitrig to build with clang; gcc doesn't like us there
860857
if [ $CFG_OSTYPE = unknown-bitrig ]
861858
then
@@ -973,8 +970,8 @@ fi
973970

974971
if [ ! -z "$CFG_ENABLE_CLANG" ]
975972
then
976-
if [ -z "$CC" ] || [[ $CC == *clang ]]
977-
then
973+
case "$CC" in
974+
(''|*clang)
978975
CFG_CLANG_VERSION=$($CFG_CC \
979976
--version \
980977
| grep version \
@@ -994,9 +991,11 @@ then
994991
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
995992
;;
996993
esac
997-
else
994+
;;
995+
(*)
998996
msg "skipping CFG_ENABLE_CLANG version check; provided CC=$CC"
999-
fi
997+
;;
998+
esac
1000999
fi
10011000

10021001
if [ ! -z "$CFG_ENABLE_CCACHE" ]
@@ -1309,6 +1308,12 @@ CFG_LLVM_SRC_DIR=${CFG_SRC_DIR}src/llvm/
13091308
for t in $CFG_HOST
13101309
do
13111310
do_reconfigure=1
1311+
is_msvc=0
1312+
case "$t" in
1313+
(*-msvc)
1314+
is_msvc=1
1315+
;;
1316+
esac
13121317

13131318
if [ -z $CFG_LLVM_ROOT ]
13141319
then
@@ -1328,7 +1333,13 @@ do
13281333
LLVM_ASSERTION_OPTS="--disable-assertions"
13291334
else
13301335
LLVM_ASSERTION_OPTS="--enable-assertions"
1331-
LLVM_INST_DIR=${LLVM_INST_DIR}+Asserts
1336+
1337+
# Apparently even if we request assertions be enabled for MSVC,
1338+
# LLVM's CMake build system ignore this and outputs in `Release`
1339+
# anyway.
1340+
if [ ${is_msvc} -eq 0 ]; then
1341+
LLVM_INST_DIR=${LLVM_INST_DIR}+Asserts
1342+
fi
13321343
fi
13331344
else
13341345
msg "not reconfiguring LLVM, external LLVM root"
@@ -1358,14 +1369,7 @@ do
13581369
done
13591370
fi
13601371

1361-
use_cmake=0
1362-
case "$t" in
1363-
(*-msvc)
1364-
use_cmake=1
1365-
;;
1366-
esac
1367-
1368-
if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -ne 0 ]
1372+
if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc} -ne 0 ]
13691373
then
13701374
msg "configuring LLVM for $t with cmake"
13711375

@@ -1390,7 +1394,7 @@ do
13901394
need_ok "LLVM cmake configure failed"
13911395
fi
13921396

1393-
if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -eq 0 ]
1397+
if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc} -eq 0 ]
13941398
then
13951399
# LLVM's configure doesn't recognize the new Windows triples yet
13961400
gnu_t=$(to_gnu_triple $t)
@@ -1555,6 +1559,7 @@ done
15551559
step_msg "writing configuration"
15561560

15571561
putvar CFG_SRC_DIR
1562+
putvar CFG_SRC_DIR_RELATIVE
15581563
putvar CFG_BUILD_DIR
15591564
putvar CFG_OSTYPE
15601565
putvar CFG_CPUTYPE

trunk/mk/cfg/x86_64-pc-windows-msvc.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ CPP_x86_64-pc-windows-msvc="$(CFG_MSVC_CL)" -nologo
66
AR_x86_64-pc-windows-msvc="$(CFG_MSVC_LIB)" -nologo
77
CFG_LIB_NAME_x86_64-pc-windows-msvc=$(1).dll
88
CFG_STATIC_LIB_NAME_x86_64-pc-windows-msvc=$(1).lib
9-
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.dll
9+
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.{dll,lib}
1010
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_x86_64-pc-windows-msvc :=
12-
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc :=
13-
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc :=
12+
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := -MD
13+
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc := -MD
1414
CFG_GCCISH_LINK_FLAGS_x86_64-pc-windows-msvc :=
1515
CFG_GCCISH_DEF_FLAG_x86_64-pc-windows-msvc :=
1616
CFG_LLC_FLAGS_x86_64-pc-windows-msvc :=
@@ -80,3 +80,8 @@ CUSTOM_DEPS_rustc_llvm_T_x86_64-pc-windows-msvc += \
8080
x86_64-pc-windows-msvc/rt/rustc_llvm.def: $(S)src/etc/mklldef.py \
8181
$(S)src/librustc_llvm/lib.rs
8282
$(CFG_PYTHON) $^ $@ rustc_llvm-$(CFG_FILENAME_EXTRA)
83+
84+
# All windows nightiles are currently a GNU triple, so this MSVC triple is not
85+
# bootstrapping from itself. This is relevant during stage0, and other parts of
86+
# the build system take this into account.
87+
BOOTSTRAP_FROM_x86_64-pc-windows-msvc := x86_64-pc-windows-gnu

trunk/mk/cfg/x86_64-unknown-linux-musl.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CC_x86_64-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc
33
CXX_x86_64-unknown-linux-musl=notaprogram
44
CPP_x86_64-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc -E
55
AR_x86_64-unknown-linux-musl=$(AR)
6+
CFG_INSTALL_ONLY_RLIB_x86_64-unknown-linux-musl = 1
67
CFG_LIB_NAME_x86_64-unknown-linux-musl=lib$(1).so
78
CFG_STATIC_LIB_NAME_x86_64-unknown-linux-musl=lib$(1).a
89
CFG_LIB_GLOB_x86_64-unknown-linux-musl=lib$(1)-*.so

trunk/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ DOC_CRATES := std alloc collections core libc rustc_unicode
134134
#
135135
# $(1) is the crate to generate variables for
136136
define RUST_CRATE
137-
CRATEFILE_$(1) := $$(S)src/lib$(1)/lib.rs
137+
CRATEFILE_$(1) := $$(SREL)src/lib$(1)/lib.rs
138138
RSINPUTS_$(1) := $$(call rwildcard,$(S)src/lib$(1)/,*.rs)
139139
RUST_DEPS_$(1) := $$(filter-out native:%,$$(DEPS_$(1)))
140140
NATIVE_DEPS_$(1) := $$(patsubst native:%,%,$$(filter native:%,$$(DEPS_$(1))))

trunk/mk/debuggers.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
## GDB ##
1717
DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB=gdb_load_rust_pretty_printers.py \
18-
gdb_rust_pretty_printing.py
18+
gdb_rust_pretty_printing.py \
19+
debugger_pretty_printers_common.py
1920
DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB_ABS=\
2021
$(foreach script,$(DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB), \
2122
$(CFG_SRC_DIR)src/etc/$(script))
@@ -27,7 +28,8 @@ DEBUGGER_BIN_SCRIPTS_GDB_ABS=\
2728

2829

2930
## LLDB ##
30-
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB=lldb_rust_formatters.py
31+
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB=lldb_rust_formatters.py \
32+
debugger_pretty_printers_common.py
3133
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB_ABS=\
3234
$(foreach script,$(DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB), \
3335
$(CFG_SRC_DIR)src/etc/$(script))

trunk/mk/docs.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ DOC_TARGETS += doc/not_found.html
169169
doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
170170
@$(call E, rustdoc: $@)
171171
$(Q)$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) \
172+
--markdown-no-toc \
172173
--markdown-css http://doc.rust-lang.org/rust.css $<
173174

174175
define DEF_DOC
@@ -265,7 +266,7 @@ endef
265266
$(foreach crate,$(CRATES),$(eval $(call DEF_LIB_DOC,$(crate))))
266267

267268
COMPILER_DOC_TARGETS := $(CRATES:%=doc/%/index.html)
268-
ifdef CFG_COMPILER_DOCS
269+
ifdef CFG_ENABLE_COMPILER_DOCS
269270
DOC_TARGETS += $(COMPILER_DOC_TARGETS)
270271
else
271272
DOC_TARGETS += $(DOC_CRATES:%=doc/%/index.html)

trunk/mk/main.mk

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ ifneq ($(wildcard $(subst $(SPACE),\$(SPACE),$(CFG_GIT_DIR))),)
7474
endif
7575
endif
7676

77-
CFG_BUILD_DATE = $(shell date +%F)
78-
CFG_VERSION += (built $(CFG_BUILD_DATE))
79-
8077
# Windows exe's need numeric versions - don't use anything but
8178
# numbers and dots here
8279
CFG_VERSION_WIN = $(CFG_RELEASE_NUM)
@@ -130,9 +127,7 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
130127

131128
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
132129
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
133-
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
134-
else
135-
CFG_RUSTC_FLAGS += --cfg ndebug
130+
CFG_RUSTC_FLAGS += -C debug-assertions=on
136131
endif
137132

138133
ifdef CFG_ENABLE_DEBUGINFO
@@ -327,14 +322,14 @@ $(foreach host,$(CFG_HOST), \
327322
# exported
328323

329324
export CFG_SRC_DIR
325+
export CFG_SRC_DIR_RELATIVE
330326
export CFG_BUILD_DIR
331327
ifdef CFG_VER_DATE
332328
export CFG_VER_DATE
333329
endif
334330
ifdef CFG_VER_HASH
335331
export CFG_VER_HASH
336332
endif
337-
export CFG_BUILD_DATE
338333
export CFG_VERSION
339334
export CFG_VERSION_WIN
340335
export CFG_RELEASE

trunk/mk/prepare.mk

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,34 @@ DEFAULT_PREPARE_MAN_CMD = install -m644
2929

3030
# Create a directory
3131
# $(1) is the directory
32+
#
33+
# XXX: These defines are called to generate make steps.
34+
# Adding blank lines means two steps from different defines will not end up on
35+
# the same line.
3236
define PREPARE_DIR
33-
@$(Q)$(call E, prepare: $(1))
37+
38+
@$(call E, prepare: $(1))
3439
$(Q)$(PREPARE_DIR_CMD) $(1)
40+
3541
endef
3642

3743
# Copy an executable
3844
# $(1) is the filename/libname-glob
3945
#
40-
# Gee, what's up with that $(nop)? See comment below.
46+
# See above for an explanation on the surrounding blank lines
4147
define PREPARE_BIN
42-
$(nop)
48+
4349
@$(call E, prepare: $(PREPARE_DEST_BIN_DIR)/$(1))
4450
$(Q)$(PREPARE_BIN_CMD) $(PREPARE_SOURCE_BIN_DIR)/$(1) $(PREPARE_DEST_BIN_DIR)/$(1)
51+
4552
endef
4653

4754
# Copy a dylib or rlib
4855
# $(1) is the filename/libname-glob
4956
#
50-
# XXX: Don't remove the $(nop) command below!
51-
# Yeah, that's right, it's voodoo. Something in the way this macro is being expanded
52-
# causes it to parse incorrectly. Throwing in that empty command seems to fix the
53-
# problem. I'm sorry, just don't remove the $(nop), alright?
57+
# See above for an explanation on the surrounding blank lines
5458
define PREPARE_LIB
55-
$(nop)
59+
5660
@$(call E, prepare: $(PREPARE_WORKING_DEST_LIB_DIR)/$(1))
5761
$(Q)LIB_NAME="$(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1))))"; \
5862
MATCHES="$(filter-out %$(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1)))), \
@@ -63,14 +67,19 @@ define PREPARE_LIB
6367
echo " at destination $(PREPARE_WORKING_DEST_LIB_DIR):" && \
6468
echo $$MATCHES ; \
6569
fi
66-
$(Q)$(PREPARE_LIB_CMD) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1) | tail -1` $(PREPARE_WORKING_DEST_LIB_DIR)/
70+
$(Q)$(PREPARE_LIB_CMD) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR)/$(1)` $(PREPARE_WORKING_DEST_LIB_DIR)/
71+
6772
endef
6873

6974
# Copy a man page
7075
# $(1) - source dir
76+
#
77+
# See above for an explanation on the surrounding blank lines
7178
define PREPARE_MAN
79+
7280
@$(call E, prepare: $(PREPARE_DEST_MAN_DIR)/$(1))
7381
$(Q)$(PREPARE_MAN_CMD) $(PREPARE_SOURCE_MAN_DIR)/$(1) $(PREPARE_DEST_MAN_DIR)/$(1)
82+
7483
endef
7584

7685
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS))

trunk/mk/reconfig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Makefile config.mk: config.stamp
3434

3535
config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
3636
@$(call E, cfg: reconfiguring)
37-
$(S)configure $(CFG_CONFIGURE_ARGS)
37+
$(SREL)configure $(CFG_CONFIGURE_ARGS)

0 commit comments

Comments
 (0)