Skip to content

Commit 7cefd97

Browse files
committed
---
yaml --- r: 211063 b: refs/heads/try c: 65f3067 h: refs/heads/master i: 211061: 3f6514e 211059: 3423bbe 211055: 781dc7c v: v3
1 parent f4537c7 commit 7cefd97

File tree

360 files changed

+4906
-8551
lines changed

Some content is hidden

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

360 files changed

+4906
-8551
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: cec980a1a706fd6afc27dd54c1eed7c51800d753
5+
refs/heads/try: 65f3067b5257895bf3714a0678996520e27b7391
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aaron Raimist <[email protected]>
88
Aaron Todd <[email protected]>
99
Aaron Turon <[email protected]>
1010
Aaron Weiss <[email protected]>
11-
Abhishek Chanda <abhishek.becs@gmail.com>
11+
Abhishek Chanda <abhishek@cloudscaling.com>
1212
Adam Bozanich <[email protected]>
1313
Adam Jacob <[email protected]>
1414
Adam Roben <[email protected]>

branches/try/Makefile.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,8 @@ ifneq ($(strip $(findstring TAGS.emacs,$(MAKECMDGOALS)) \
266266
CFG_INFO := $(info cfg: including ctags rules)
267267
include $(CFG_SRC_DIR)mk/ctags.mk
268268
endif
269+
270+
# Find all of the .d files and include them to add information about
271+
# header file dependencies.
272+
ALL_DEP_FILES := $(ALL_OBJ_FILES:%.o=%.d)
273+
-include $(ALL_DEP_FILES)

branches/try/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# The Rust Programming Language
22

3-
Rust is a systems programming language that is fast, memory safe and
4-
multithreaded, but does not employ a garbage collector or otherwise
5-
impose significant runtime overhead.
6-
7-
This repo contains the code for `rustc`, the Rust compiler, as well
8-
as standard libraries, tools and documentation for Rust.
3+
This is a compiler for Rust, including standard libraries, tools and
4+
documentation. Rust is a systems programming language that is fast,
5+
memory safe and multithreaded, but does not employ a garbage collector
6+
or otherwise impose significant runtime overhead.
97

108
## Quick Start
119

branches/try/RELEASES.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Language
2323
* Digits of binary and octal literals are [lexed more eagerly][lex] to
2424
improve error messages and macro behavior. For example, `0b1234` is
2525
now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
26-
* Trait bounds [are always invariant][inv], eliminating the need for
26+
* Trait bounds [are always invariant][inv], eleminating the need for
2727
the `PhantomFn` and `MarkerTrait` lang items, which have been
2828
removed.
2929
* ["-" is no longer a valid character in crate names][cr], the `extern crate
@@ -162,7 +162,7 @@ Misc
162162

163163

164164
Version 1.0.0-alpha.2 (February 2015)
165-
=====================================
165+
-------------------------------------
166166

167167
* ~1300 changes, numerous bugfixes
168168

@@ -260,9 +260,8 @@ Version 1.0.0-alpha.2 (February 2015)
260260
[ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
261261
[un]: https://github.com/rust-lang/rust/pull/22256
262262

263-
264263
Version 1.0.0-alpha (January 2015)
265-
==================================
264+
----------------------------------
266265

267266
* ~2400 changes, numerous bugfixes
268267

@@ -447,9 +446,8 @@ Version 1.0.0-alpha (January 2015)
447446
[trpl]: http://doc.rust-lang.org/book/index.html
448447
[rbe]: http://rustbyexample.com/
449448

450-
451449
Version 0.12.0 (October 2014)
452-
=============================
450+
-----------------------------
453451

454452
* ~1900 changes, numerous bugfixes
455453

@@ -570,9 +568,8 @@ Version 0.12.0 (October 2014)
570568
* Official Rust binaries on Linux are more compatible with older
571569
kernels and distributions, built on CentOS 5.10.
572570

573-
574571
Version 0.11.0 (July 2014)
575-
==========================
572+
-------------------------
576573

577574
* ~1700 changes, numerous bugfixes
578575

@@ -703,9 +700,8 @@ Version 0.11.0 (July 2014)
703700
* Error message related to non-exhaustive match expressions have been
704701
greatly improved.
705702

706-
707703
Version 0.10 (April 2014)
708-
=========================
704+
-------------------------
709705

710706
* ~1500 changes, numerous bugfixes
711707

@@ -870,9 +866,8 @@ Version 0.10 (April 2014)
870866
* search works across crates that have been rendered to the same output
871867
directory.
872868

873-
874869
Version 0.9 (January 2014)
875-
==========================
870+
--------------------------
876871

877872
* ~1800 changes, numerous bugfixes
878873

@@ -1036,9 +1031,8 @@ Version 0.9 (January 2014)
10361031
* `rustc` adds a `--dep-info` flag for communicating dependencies to
10371032
build tools.
10381033

1039-
10401034
Version 0.8 (September 2013)
1041-
============================
1035+
--------------------------
10421036

10431037
* ~2200 changes, numerous bugfixes
10441038

@@ -1192,9 +1186,8 @@ Version 0.8 (September 2013)
11921186
* A new documentation backend, rustdoc_ng, is available for use. It is
11931187
still invoked through the normal `rustdoc` command.
11941188

1195-
11961189
Version 0.7 (July 2013)
1197-
=======================
1190+
-----------------------
11981191

11991192
* ~2000 changes, numerous bugfixes
12001193

@@ -1309,9 +1302,8 @@ Version 0.7 (July 2013)
13091302
* Various improvements to rustdoc.
13101303
* Improvements to rustpkg (see the detailed release notes).
13111304

1312-
13131305
Version 0.6 (April 2013)
1314-
========================
1306+
------------------------
13151307

13161308
* ~2100 changes, numerous bugfixes
13171309

@@ -1412,9 +1404,8 @@ Version 0.6 (April 2013)
14121404
* Rust code may be embedded in foreign code under limited circumstances
14131405
* Inline assembler supported by new asm!() syntax extension.
14141406

1415-
14161407
Version 0.5 (December 2012)
1417-
===========================
1408+
---------------------------
14181409

14191410
* ~900 changes, numerous bugfixes
14201411

@@ -1469,9 +1460,8 @@ Version 0.5 (December 2012)
14691460
* Added a preliminary REPL, `rusti`
14701461
* License changed from MIT to dual MIT/APL2
14711462

1472-
14731463
Version 0.4 (October 2012)
1474-
==========================
1464+
--------------------------
14751465

14761466
* ~2000 changes, numerous bugfixes
14771467

@@ -1525,9 +1515,8 @@ Version 0.4 (October 2012)
15251515
Rust-based (visitor) code
15261516
* All hash functions and tables converted to secure, randomized SipHash
15271517

1528-
15291518
Version 0.3 (July 2012)
1530-
========================
1519+
------------------------
15311520

15321521
* ~1900 changes, numerous bugfixes
15331522

@@ -1584,9 +1573,8 @@ Version 0.3 (July 2012)
15841573
* Tool improvements
15851574
* Cargo automatically resolves dependencies
15861575

1587-
15881576
Version 0.2 (March 2012)
1589-
=========================
1577+
-------------------------
15901578

15911579
* >1500 changes, numerous bugfixes
15921580
@@ -1625,9 +1613,8 @@ Version 0.2 (March 2012)
16251613
* Merged per-platform std::{os*, fs*} to core::{libc, os}
16261614
* Extensive cleanup, regularization in libstd, libcore
16271615

1628-
16291616
Version 0.1 (January 20, 2012)
1630-
===============================
1617+
-------------------------------
16311618

16321619
* Most language features work, including:
16331620
* Unique pointers, unique closures, move semantics

branches/try/configure

Lines changed: 12 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ probe() {
106106
T=$(command -v $P 2>&1)
107107
if [ $? -eq 0 ]
108108
then
109-
VER0=$($P --version 2>/dev/null \
110-
| grep -o '[vV]\?[0-9][0-9.][a-z0-9.-]*' | head -1 )
109+
VER0=$($P --version 2>/dev/null | head -1 \
110+
| sed -e 's/[^0-9]*\([vV]\?[0-9.]\+[^ ]*\).*/\1/' )
111111
if [ $? -eq 0 -a "x${VER0}" != "x" ]
112112
then
113113
VER="($VER0)"
@@ -610,7 +610,7 @@ CFG_TARGET=$(to_llvm_triple $CFG_TARGET)
610610
# there's no rpath. This is where the build system itself puts libraries;
611611
# --libdir is used to configure the installation directory.
612612
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
613-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ]
613+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
614614
then
615615
CFG_LIBDIR_RELATIVE=bin
616616
else
@@ -628,8 +628,7 @@ esac
628628

629629
CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-`
630630

631-
if ( [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ] ) \
632-
&& [ "$CFG_LIBDIR_RELATIVE" != "bin" ]; then
631+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] && [ "$CFG_LIBDIR_RELATIVE" != "bin" ]; then
633632
err "libdir on windows should be set to 'bin'"
634633
fi
635634

@@ -712,20 +711,6 @@ else
712711
probe_need CFG_GIT git
713712
fi
714713

715-
# Use `md5sum` on GNU platforms, or `md5 -q` on BSD
716-
probe CFG_MD5 md5
717-
probe CFG_MD5SUM md5sum
718-
if [ -n "$CFG_MD5" ]
719-
then
720-
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
721-
elif [ -n "$CFG_MD5SUM" ]
722-
then
723-
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
724-
else
725-
err 'could not find one of: md5 md5sum'
726-
fi
727-
putvar CFG_HASH_COMMAND
728-
729714
probe CFG_CLANG clang++
730715
probe CFG_CCACHE ccache
731716
probe CFG_GCC gcc
@@ -818,7 +803,7 @@ then
818803
fi
819804

820805
BIN_SUF=
821-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ]
806+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
822807
then
823808
BIN_SUF=.exe
824809
fi
@@ -1098,65 +1083,6 @@ do
10981083
err "musl libc $CFG_MUSL_ROOT/lib/libc.a not found"
10991084
fi
11001085
;;
1101-
1102-
x86_64-*-msvc)
1103-
# Currently the build system is not configured to build jemalloc
1104-
# with MSVC, so we omit this optional dependency.
1105-
step_msg "targeting MSVC, disabling jemalloc"
1106-
CFG_DISABLE_JEMALLOC=1
1107-
putvar CFG_DISABLE_JEMALLOC
1108-
1109-
# There are some MSYS python builds which will auto-translate
1110-
# windows-style paths to MSYS-style paths in Python itself.
1111-
# Unfortunately this breaks LLVM's build system as somewhere along
1112-
# the line LLVM prints a path into a file from Python and then CMake
1113-
# later tries to interpret that path. If Python prints a MSYS path
1114-
# and CMake tries to use it as a Windows path, you're gonna have a
1115-
# Bad Time.
1116-
#
1117-
# Consequently here we try to detect when that happens and print an
1118-
# error if it does.
1119-
if $CFG_PYTHON -c 'import sys; print sys.argv[1]' `pwd` | grep '^/'
1120-
then
1121-
err "python is silently translating windows paths to MSYS paths \
1122-
and the build will fail if this python is used.\n\n \
1123-
Either an official python install must be used or an \
1124-
alternative python package in MinGW must be used."
1125-
fi
1126-
1127-
# MSVC requires cmake because that's how we're going to build LLVM
1128-
probe_need CFG_CMAKE cmake
1129-
1130-
# Use the REG program to figure out where VS is installed
1131-
# We need to figure out where cl.exe and link.exe are, so we do some
1132-
# munging and some probing here. We also look for the default
1133-
# INCLUDE and LIB variables for MSVC so we can set those in the
1134-
# build system as well.
1135-
install=$(reg QUERY \
1136-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
1137-
-v InstallDir)
1138-
need_ok "couldn't find visual studio install root"
1139-
CFG_MSVC_ROOT=$(echo "$install" | grep InstallDir | sed 's/.*REG_SZ[ ]*//')
1140-
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
1141-
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
1142-
CFG_MSVC_CL="${CFG_MSVC_ROOT}/VC/bin/amd64/cl.exe"
1143-
CFG_MSVC_LIB="${CFG_MSVC_ROOT}/VC/bin/amd64/lib.exe"
1144-
CFG_MSVC_LINK="${CFG_MSVC_ROOT}/VC/bin/amd64/link.exe"
1145-
1146-
vcvarsall="${CFG_MSVC_ROOT}/VC/vcvarsall.bat"
1147-
CFG_MSVC_INCLUDE_PATH=$(cmd /c "\"$vcvarsall\" amd64 && cmd /c echo %INCLUDE%")
1148-
need_ok "failed to learn about MSVC's INCLUDE"
1149-
CFG_MSVC_LIB_PATH=$(cmd /c "\"$vcvarsall\" amd64 && cmd /c echo %LIB%")
1150-
need_ok "failed to learn about MSVC's LIB"
1151-
1152-
putvar CFG_MSVC_ROOT
1153-
putvar CFG_MSVC_CL
1154-
putvar CFG_MSVC_LIB
1155-
putvar CFG_MSVC_LINK
1156-
putvar CFG_MSVC_INCLUDE_PATH
1157-
putvar CFG_MSVC_LIB_PATH
1158-
;;
1159-
11601086
*)
11611087
;;
11621088
esac
@@ -1198,7 +1124,6 @@ do
11981124
do
11991125
make_dir $t/rt/stage$s
12001126
make_dir $t/rt/jemalloc
1201-
make_dir $t/rt/compiler-rt
12021127
for i in \
12031128
isaac sync test \
12041129
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips arch/powerpc
@@ -1362,39 +1287,7 @@ do
13621287
done
13631288
fi
13641289

1365-
use_cmake=0
1366-
case "$t" in
1367-
(*-msvc)
1368-
use_cmake=1
1369-
;;
1370-
esac
1371-
1372-
if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -ne 0 ]
1373-
then
1374-
msg "configuring LLVM for $t with cmake"
1375-
1376-
CMAKE_ARGS="-DLLVM_INCLUDE_TESTS=OFF"
1377-
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
1378-
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
1379-
else
1380-
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release"
1381-
fi
1382-
if [ -z "$CFG_ENABLE_LLVM_ASSERTIONS" ]
1383-
then
1384-
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_ASSERTIONS=OFF"
1385-
else
1386-
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_ASSERTIONS=ON"
1387-
fi
1388-
1389-
msg "configuring LLVM with:"
1390-
msg "$CMAKE_ARGS"
1391-
(cd $LLVM_BUILD_DIR && "$CFG_CMAKE" $CFG_LLVM_SRC_DIR \
1392-
-G "Visual Studio 12 2013 Win64" \
1393-
$CMAKE_ARGS)
1394-
need_ok "LLVM cmake configure failed"
1395-
fi
1396-
1397-
if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -eq 0 ]
1290+
if [ ${do_reconfigure} -ne 0 ]
13981291
then
13991292
# LLVM's configure doesn't recognize the new Windows triples yet
14001293
gnu_t=$(to_gnu_triple $t)
@@ -1418,7 +1311,7 @@ do
14181311
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
14191312
# Also note that pthreads works badly on mingw-w64 systems: #8996
14201313
case "$CFG_BUILD" in
1421-
(*-windows-gnu)
1314+
(*-windows-*)
14221315
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
14231316
;;
14241317
esac
@@ -1602,6 +1495,11 @@ do
16021495
putvar $CFG_LLVM_INST_DIR
16031496
done
16041497

1498+
# Munge any paths that appear in config.mk back to posix-y
1499+
cp config.tmp config.tmp.bak
1500+
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
1501+
rm -f config.tmp.bak
1502+
16051503
msg
16061504
copy_if_changed ${CFG_SRC_DIR}Makefile.in ./Makefile
16071505
move_if_changed config.tmp config.mk

0 commit comments

Comments
 (0)