Skip to content

Commit d68cffe

Browse files
committed
---
yaml --- r: 208878 b: refs/heads/master c: e7aad28 h: refs/heads/master v: v3
1 parent dfeddf4 commit d68cffe

Some content is hidden

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

99 files changed

+1798
-2826
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: 4c2ebc3947568f5ca11c4e8a97538296b4f78285
2+
refs/heads/master: e7aad2861422a4fb65808d2a8a6dbeb22e6a0c1d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f

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

trunk/RELEASES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Language
1919

2020
* Several [restrictions have been added to trait coherence][coh] in
2121
order to make it easier for upstream authors to change traits
22-
without breaking downstream code.
22+
without breaking downsteam code.
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`.
@@ -169,10 +169,10 @@ Version 1.0.0-alpha.2 (February 2015)
169169
* Highlights
170170

171171
* The various I/O modules were [overhauled][io-rfc] to reduce
172-
unnecessary abstractions and provide better interoperation with
172+
unncessary abstractions and provide better interoperation with
173173
the underlying platform. The old `io` module remains temporarily
174174
at `std::old_io`.
175-
* The standard library now [participates in feature gating][feat],
175+
* The standard library now [partipates in feature gating][feat],
176176
so use of unstable libraries now requires a `#![feature(...)]`
177177
attribute. The impact of this change is [described on the
178178
forum][feat-forum]. [RFC][feat-rfc].
@@ -385,7 +385,7 @@ Version 1.0.0-alpha (January 2015)
385385
syscall when available.
386386
* The 'serialize' crate has been renamed 'rustc-serialize' and
387387
moved out of the distribution to Cargo. Although it is widely
388-
used now, it is expected to be superseded in the near future.
388+
used now, it is expected to be superceded in the near future.
389389
* The `Show` formatter, typically implemented with
390390
`#[derive(Show)]` is [now requested with the `{:?}`
391391
specifier][show] and is intended for use by all types, for uses

trunk/configure

Lines changed: 12 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -717,10 +716,10 @@ probe CFG_MD5 md5
717716
probe CFG_MD5SUM md5sum
718717
if [ -n "$CFG_MD5" ]
719718
then
720-
CFG_HASH_COMMAND="$CFG_MD5 -q | cut -c 1-8"
719+
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
721720
elif [ -n "$CFG_MD5SUM" ]
722721
then
723-
CFG_HASH_COMMAND="$CFG_MD5SUM | cut -c 1-8"
722+
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
724723
else
725724
err 'could not find one of: md5 md5sum'
726725
fi
@@ -818,7 +817,7 @@ then
818817
fi
819818

820819
BIN_SUF=
821-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ]
820+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
822821
then
823822
BIN_SUF=.exe
824823
fi
@@ -1098,65 +1097,6 @@ do
10981097
err "musl libc $CFG_MUSL_ROOT/lib/libc.a not found"
10991098
fi
11001099
;;
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-
11601100
*)
11611101
;;
11621102
esac
@@ -1198,7 +1138,6 @@ do
11981138
do
11991139
make_dir $t/rt/stage$s
12001140
make_dir $t/rt/jemalloc
1201-
make_dir $t/rt/compiler-rt
12021141
for i in \
12031142
isaac sync test \
12041143
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips arch/powerpc
@@ -1362,39 +1301,7 @@ do
13621301
done
13631302
fi
13641303

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 ]
1304+
if [ ${do_reconfigure} -ne 0 ]
13981305
then
13991306
# LLVM's configure doesn't recognize the new Windows triples yet
14001307
gnu_t=$(to_gnu_triple $t)
@@ -1418,7 +1325,7 @@ do
14181325
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
14191326
# Also note that pthreads works badly on mingw-w64 systems: #8996
14201327
case "$CFG_BUILD" in
1421-
(*-windows-gnu)
1328+
(*-windows-*)
14221329
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
14231330
;;
14241331
esac
@@ -1602,6 +1509,11 @@ do
16021509
putvar $CFG_LLVM_INST_DIR
16031510
done
16041511

1512+
# Munge any paths that appear in config.mk back to posix-y
1513+
cp config.tmp config.tmp.bak
1514+
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
1515+
rm -f config.tmp.bak
1516+
16051517
msg
16061518
copy_if_changed ${CFG_SRC_DIR}Makefile.in ./Makefile
16071519
move_if_changed config.tmp config.mk

trunk/mk/cfg/aarch64-apple-ios.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
55
CFG_IOS_SDK_aarch64-apple-ios := $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
66
CFG_IOS_SDK_FLAGS_aarch64-apple-ios := -target aarch64-apple-darwin -isysroot $(CFG_IOS_SDK_aarch64-apple-ios) -mios-version-min=7.0 -arch arm64
77
CC_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
8-
LINK_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
98
CXX_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
109
CPP_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
1110
AR_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos ar)

trunk/mk/cfg/aarch64-linux-android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# aarch64-linux-android configuration
22
# CROSS_PREFIX_aarch64-linux-android-
33
CC_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc
4-
LINK_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc
54
CXX_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-g++
65
CPP_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc -E
76
AR_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-ar

trunk/mk/cfg/aarch64-unknown-linux-gnu.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# aarch64-unknown-linux-gnu configuration
22
CROSS_PREFIX_aarch64-unknown-linux-gnu=aarch64-linux-gnu-
33
CC_aarch64-unknown-linux-gnu=gcc
4-
LINK_aarch64-unknown-linux-gnu=gcc
54
CXX_aarch64-unknown-linux-gnu=g++
65
CPP_aarch64-unknown-linux-gnu=gcc -E
76
AR_aarch64-unknown-linux-gnu=ar

trunk/mk/cfg/arm-linux-androideabi.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# arm-linux-androideabi configuration
2-
LINK_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc
32
CC_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc
43
CXX_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-g++
54
CPP_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc -E

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# x86_64-pc-windows-gnu configuration
22
CROSS_PREFIX_x86_64-pc-windows-gnu=x86_64-w64-mingw32-
33
CC_x86_64-pc-windows-gnu=gcc
4-
LINK_x86_64-pc-windows-gnu=gcc
54
CXX_x86_64-pc-windows-gnu=g++
65
CPP_x86_64-pc-windows-gnu=gcc -E
76
AR_x86_64-pc-windows-gnu=ar

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

Lines changed: 0 additions & 82 deletions
This file was deleted.

trunk/mk/clean.mk

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,16 @@ $(foreach host, $(CFG_HOST), \
118118
$(eval $(foreach target, $(CFG_TARGET), \
119119
$(eval $(foreach stage, 0 1 2 3, \
120120
$(eval $(call CLEAN_TARGET_STAGE_N,$(stage),$(target),$(host))))))))
121+
122+
define DEF_CLEAN_LLVM_HOST
123+
ifeq ($(CFG_LLVM_ROOT),)
124+
clean-llvm$(1):
125+
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) clean
126+
else
127+
clean-llvm$(1): ;
128+
129+
endif
130+
endef
131+
132+
$(foreach host, $(CFG_HOST), \
133+
$(eval $(call DEF_CLEAN_LLVM_HOST,$(host))))

trunk/mk/crates.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ ONLY_RLIB_rustc_bitflags := 1
125125
# Documented-by-default crates
126126
DOC_CRATES := std alloc collections core libc rustc_unicode
127127

128+
# Installed objects/libraries by default
129+
INSTALLED_OBJECTS := libmorestack.a libcompiler-rt.a
130+
128131
################################################################################
129132
# You should not need to edit below this line
130133
################################################################################

0 commit comments

Comments
 (0)