Skip to content

Commit 3160a03

Browse files
committed
---
yaml --- r: 159803 b: refs/heads/try c: fcfd307 h: refs/heads/master i: 159801: 1c99030 159799: 576c456 v: v3
1 parent 16df1c3 commit 3160a03

File tree

1,107 files changed

+26548
-19954
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,107 files changed

+26548
-19954
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: e09d98603e608c9e47d4c89f7b4dca87a4b56da3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9c96a79a74f10bed18b031ce0ac4126c56d6cfb3
5-
refs/heads/try: d108613ba00edea07ff7e233e3e9c0766132cd3e
5+
refs/heads/try: fcfd307493807d3ae34bbd80378f2d07f6356394
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/.mailmap

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,104 @@
55
# email addresses.
66
#
77

8-
Elly Jones <[email protected]>
9-
8+
Aaron Todd <[email protected]>
9+
10+
11+
Alex Rønne Petersen <[email protected]>
12+
13+
14+
15+
16+
17+
18+
Benjamin Jackman <[email protected]>
19+
20+
blake2-ppc <[email protected]> <blake2-ppc>
21+
22+
23+
Brian Dawn <[email protected]>
24+
Carl-Anton Ingmarsson <[email protected]> <[email protected]>
25+
Carol Willing <[email protected]>
26+
Chris Pressey <[email protected]>
27+
28+
David Klein <[email protected]>
29+
30+
Damien Schoof <[email protected]>
31+
Derek Chiang <[email protected]> Derek Chiang (Enchi Jiang) <[email protected]>
32+
33+
34+
Eduardo Bautista <[email protected]> <=>
35+
36+
Elly Fong-Jones <[email protected]>
37+
38+
39+
Eric Holmes <[email protected]>
40+
41+
42+
Evgeny Sologubov
43+
Falco Hirschenberger <[email protected]> <[email protected]>
44+
Gareth Daniel Smith <[email protected]>
45+
46+
47+
48+
49+
50+
Ilyong Cho <[email protected]>
51+
J. J. Weber <[email protected]>
52+
Jakub Bukaj <[email protected]>
53+
54+
55+
56+
57+
58+
Jeremy Letang <[email protected]>
59+
60+
61+
62+
63+
1064
Junyoung Cho <[email protected]>
65+
66+
67+
68+
Kyeongwoon Lee <[email protected]>
69+
Lee Wondong <[email protected]>
70+
Lennart Kudling <[email protected]>
71+
72+
73+
74+
75+
Luke Metz <[email protected]>
76+
77+
Makoto Nakashima <[email protected]> gifnksm <[email protected]>
78+
Margaret Meyerhofer <[email protected]> <mmeyerho@andrew>
79+
Mark Sinclair <[email protected]>
80+
Mark Sinclair <[email protected]> =Mark Sinclair <[email protected]>
81+
82+
Matthew Auld <[email protected]>
83+
1184
Matthijs Hofstra <[email protected]>
85+
Michael Williams <[email protected]>
86+
Michael Woerister <michaelwoerister@gmail> <[email protected]>
87+
Michael Woerister <michaelwoerister@gmail> <michaelwoerister@posteo>
88+
89+
Philipp Brüschweiler <[email protected]> <[email protected]>
90+
Philipp Brüschweiler <[email protected]> <[email protected]>
91+
Pradeep Kumar <[email protected]>
92+
1293
Rob Arnold <[email protected]>
94+
Robert Gawdzik <[email protected]> Robert Gawdzik ☢ <[email protected]>
95+
Robert Millar <[email protected]>
96+
Ryan Scheel <[email protected]>
97+
Seonghyun Kim <[email protected]>
98+
Simon Barber-Dueck <[email protected]> Simon BD <simon@server>
99+
100+
startling <[email protected]>
101+
102+
Steven Stewart-Gallus <[email protected]> <[email protected]>
103+
104+
105+
106+
107+
108+
Zack Slayton <[email protected]>

branches/try/configure

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,22 @@ envopt() {
291291
fi
292292
}
293293

294+
to_llvm_triple() {
295+
case $1 in
296+
i686-w64-mingw32) echo i686-pc-windows-gnu ;;
297+
x86_64-w64-mingw32) echo x86_64-pc-windows-gnu ;;
298+
*) echo $1 ;;
299+
esac
300+
}
301+
302+
to_gnu_triple() {
303+
case $1 in
304+
i686-pc-windows-gnu) echo i686-w64-mingw32 ;;
305+
x86_64-pc-windows-gnu) echo x86_64-w64-mingw32 ;;
306+
*) echo $1 ;;
307+
esac
308+
}
309+
294310
msg "looking for configure programs"
295311
need_cmd cmp
296312
need_cmd mkdir
@@ -350,37 +366,40 @@ case $CFG_OSTYPE in
350366
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
351367
# MINGW64 on x86_64.
352368
CFG_CPUTYPE=i686
353-
CFG_OSTYPE=w64-mingw32
369+
CFG_OSTYPE=pc-windows-gnu
354370
if [ "$MSYSTEM" = MINGW64 ]
355371
then
356372
CFG_CPUTYPE=x86_64
357-
CFG_OSTYPE=w64-mingw32
358373
fi
359374
;;
360375

376+
MSYS*)
377+
CFG_OSTYPE=pc-windows-gnu
378+
;;
379+
361380
# Thad's Cygwin identifers below
362381

363382
# Vista 32 bit
364383
CYGWIN_NT-6.0)
365-
CFG_OSTYPE=pc-mingw32
384+
CFG_OSTYPE=pc-windows-gnu
366385
CFG_CPUTYPE=i686
367386
;;
368387

369388
# Vista 64 bit
370389
CYGWIN_NT-6.0-WOW64)
371-
CFG_OSTYPE=w64-mingw32
390+
CFG_OSTYPE=pc-windows-gnu
372391
CFG_CPUTYPE=x86_64
373392
;;
374393

375394
# Win 7 32 bit
376395
CYGWIN_NT-6.1)
377-
CFG_OSTYPE=pc-mingw32
396+
CFG_OSTYPE=pc-windows-gnu
378397
CFG_CPUTYPE=i686
379398
;;
380399

381400
# Win 7 64 bit
382401
CYGWIN_NT-6.1-WOW64)
383-
CFG_OSTYPE=w64-mingw32
402+
CFG_OSTYPE=pc-windows-gnu
384403
CFG_CPUTYPE=x86_64
385404
;;
386405

@@ -466,7 +485,6 @@ opt llvm-assertions 1 "build LLVM with assertions"
466485
opt debug 1 "build with extra debug fun"
467486
opt ratchet-bench 0 "ratchet benchmarks"
468487
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
469-
opt mingw-cross 0 "cross-compile for win32 using mingw"
470488
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
471489
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
472490
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
@@ -487,7 +505,6 @@ valopt llvm-root "" "set LLVM root"
487505
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
488506
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
489507
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
490-
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
491508

492509
# Many of these are saved below during the "writing configuration" step
493510
# (others are conditionally saved).
@@ -501,12 +518,18 @@ valopt_nosave target "${CFG_HOST}" "GNUs ./configure syntax LLVM target triples"
501518
valopt_nosave mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
502519
valopt_nosave release-channel "dev" "the name of the release channel to build"
503520

521+
# Temporarily support old triples until buildbots get updated
522+
CFG_BUILD=$(to_llvm_triple $CFG_BUILD)
523+
putvar CFG_BUILD # Yes, this creates a duplicate entry, but the last one wins.
524+
CFG_HOST=$(to_llvm_triple $CFG_HOST)
525+
CFG_TARGET=$(to_llvm_triple $CFG_TARGET)
526+
504527
# On windows we just store the libraries in the bin directory because
505528
# there's no rpath. This is where the build system itself puts libraries;
506529
# --libdir is used to configure the installation directory.
507530
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
508531
CFG_LIBDIR_RELATIVE=lib
509-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
532+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
510533
then
511534
CFG_LIBDIR_RELATIVE=bin
512535
fi
@@ -632,7 +655,7 @@ then
632655
fi
633656

634657
BIN_SUF=
635-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
658+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
636659
then
637660
BIN_SUF=.exe
638661
fi
@@ -842,7 +865,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
842865
CFG_MANDIR=${CFG_MANDIR%/}
843866
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
844867
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
845-
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* ${CFG_SRC_DIR}mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
868+
CFG_SUPPORTED_TARGET="$(ls ${CFG_SRC_DIR}mk/cfg)"
846869

847870
# copy host-triples to target-triples so that hosts are a subset of targets
848871
V_TEMP=""
@@ -989,6 +1012,7 @@ do
9891012
make_dir $h/test/doc-guide-container
9901013
make_dir $h/test/doc-guide-tasks
9911014
make_dir $h/test/doc-guide-plugin
1015+
make_dir $h/test/doc-guide-crates
9921016
make_dir $h/test/doc-rust
9931017
done
9941018

@@ -1099,12 +1123,15 @@ do
10991123

11001124
if [ ${do_reconfigure} -ne 0 ]
11011125
then
1102-
msg "configuring LLVM for $t"
1126+
# LLVM's configure doesn't recognize the new Windows triples yet
1127+
gnu_t=$(to_gnu_triple $t)
1128+
1129+
msg "configuring LLVM for $gnu_t"
11031130

11041131
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
1105-
LLVM_BUILD="--build=$t"
1106-
LLVM_HOST="--host=$t"
1107-
LLVM_TARGET="--target=$t"
1132+
LLVM_BUILD="--build=$gnu_t"
1133+
LLVM_HOST="--host=$gnu_t"
1134+
LLVM_TARGET="--target=$gnu_t"
11081135

11091136
# Disable unused LLVM features
11101137
LLVM_OPTS="$LLVM_DBG_OPTS $LLVM_ASSERTION_OPTS --disable-docs --enable-bindings=none"
@@ -1118,7 +1145,7 @@ do
11181145
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
11191146
# Also note that pthreads works badly on mingw-w64 systems: #8996
11201147
case "$CFG_BUILD" in
1121-
(*-mingw32)
1148+
(*-windows-*)
11221149
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
11231150
;;
11241151
esac
@@ -1268,6 +1295,7 @@ putvar CFG_HOST
12681295
putvar CFG_TARGET
12691296
putvar CFG_LIBDIR_RELATIVE
12701297
putvar CFG_DISABLE_MANAGE_SUBMODULES
1298+
putvar CFG_ANDROID_CROSS_PATH
12711299
putvar CFG_MANDIR
12721300

12731301
# Avoid spurious warnings from clang by feeding it original source on

branches/try/mk/cfg/arm-apple-ios

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# arm-apple-ios configuration
2+
CFG_SDK_NAME_arm-apple-ios = iphoneos
3+
CFG_SDK_ARCHS_arm-apple-ios = armv7
4+
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
5+
CFG_IOS_SDK = $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
6+
CFG_IOS_FLAGS = -target armv7-apple-ios -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
7+
CC_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
8+
CXX_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
9+
CPP_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
10+
AR_arm-apple-ios = $(shell xcrun -find -sdk iphoneos ar)
11+
endif
12+
CFG_LIB_NAME_arm-apple-ios = lib$(1).a
13+
CFG_LIB_GLOB_arm-apple-ios = lib$(1)-*.a
14+
CFG_STATIC_LIB_NAME_arm-apple-ios=lib$(1).a
15+
CFG_LIB_DSYM_GLOB_arm-apple-ios = lib$(1)-*.a.dSYM
16+
CFG_CFLAGS_arm-apple-ios := -arch armv7 -mfpu=vfp3 $(CFG_IOS_FLAGS)
17+
CFG_GCCISH_CFLAGS_arm-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_FLAGS) -mfpu=vfp3 -arch armv7
18+
CFG_GCCISH_CXXFLAGS_arm-apple-ios := -fno-rtti $(CFG_IOS_FLAGS) -I$(CFG_IOS_SDK)/usr/include/c++/4.2.1
19+
CFG_GCCISH_LINK_FLAGS_arm-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK) -Wl,-no_compact_unwind
20+
CFG_GCCISH_DEF_FLAG_arm-apple-ios := -Wl,-exported_symbols_list,
21+
CFG_GCCISH_PRE_LIB_FLAGS_arm-apple-ios :=
22+
CFG_GCCISH_POST_LIB_FLAGS_arm-apple-ios :=
23+
CFG_DEF_SUFFIX_arm-apple-ios := .darwin.def
24+
CFG_LLC_FLAGS_arm-apple-ios := -mattr=+vfp3,+v7,+thumb2,+neon -march=arm
25+
CFG_INSTALL_NAME_arm-apple-ios = -Wl,-install_name,@rpath/$(1)
26+
CFG_EXE_SUFFIX_arm-apple-ios :=
27+
CFG_WINDOWSY_arm-apple-ios :=
28+
CFG_UNIXY_arm-apple-ios := 1
29+
CFG_PATH_MUNGE_arm-apple-ios := true
30+
CFG_LDPATH_arm-apple-ios :=
31+
CFG_RUN_arm-apple-ios = $(2)
32+
CFG_RUN_TARG_arm-apple-ios = $(call CFG_RUN_arm-apple-ios,,$(2))
33+
RUSTC_FLAGS_arm-apple-ios := -C relocation_model=pic
34+
RUSTC_CROSS_FLAGS_arm-apple-ios :=-C relocation_model=pic
35+
CFG_GNU_TRIPLE_arm-apple-ios := arm-apple-ios
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# arm-linux-androideabi configuration
2+
CC_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc
3+
CXX_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-g++
4+
CPP_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc -E
5+
AR_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-ar
6+
CFG_LIB_NAME_arm-linux-androideabi=lib$(1).so
7+
CFG_STATIC_LIB_NAME_arm-linux-androideabi=lib$(1).a
8+
CFG_LIB_GLOB_arm-linux-androideabi=lib$(1)-*.so
9+
CFG_LIB_DSYM_GLOB_arm-linux-androideabi=lib$(1)-*.dylib.dSYM
10+
CFG_CFLAGS_arm-linux-androideabi := -D__arm__ -DANDROID -D__ANDROID__ $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_arm-linux-androideabi := -Wall -g -fPIC -D__arm__ -DANDROID -D__ANDROID__ $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_arm-linux-androideabi := -fno-rtti $(CXXFLAGS)
13+
CFG_GCCISH_LINK_FLAGS_arm-linux-androideabi := -shared -fPIC -ldl -g -lm -lsupc++
14+
CFG_GCCISH_DEF_FLAG_arm-linux-androideabi := -Wl,--export-dynamic,--dynamic-list=
15+
CFG_GCCISH_PRE_LIB_FLAGS_arm-linux-androideabi := -Wl,-whole-archive
16+
CFG_GCCISH_POST_LIB_FLAGS_arm-linux-androideabi := -Wl,-no-whole-archive
17+
CFG_DEF_SUFFIX_arm-linux-androideabi := .android.def
18+
CFG_LLC_FLAGS_arm-linux-androideabi :=
19+
CFG_INSTALL_NAME_arm-linux-androideabi =
20+
CFG_EXE_SUFFIX_arm-linux-androideabi :=
21+
CFG_WINDOWSY_arm-linux-androideabi :=
22+
CFG_UNIXY_arm-linux-androideabi := 1
23+
CFG_PATH_MUNGE_arm-linux-androideabi := true
24+
CFG_LDPATH_arm-linux-androideabi :=
25+
CFG_RUN_arm-linux-androideabi=
26+
CFG_RUN_TARG_arm-linux-androideabi=
27+
RUSTC_FLAGS_arm-linux-androideabi :=
28+
RUSTC_CROSS_FLAGS_arm-linux-androideabi :=
29+
CFG_GNU_TRIPLE_arm-linux-androideabi := arm-linux-androideabi
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# arm-unknown-linux-gnueabi configuration
2+
CROSS_PREFIX_arm-unknown-linux-gnueabi=arm-linux-gnueabi-
3+
CC_arm-unknown-linux-gnueabi=gcc
4+
CXX_arm-unknown-linux-gnueabi=g++
5+
CPP_arm-unknown-linux-gnueabi=gcc -E
6+
AR_arm-unknown-linux-gnueabi=ar
7+
CFG_LIB_NAME_arm-unknown-linux-gnueabi=lib$(1).so
8+
CFG_STATIC_LIB_NAME_arm-unknown-linux-gnueabi=lib$(1).a
9+
CFG_LIB_GLOB_arm-unknown-linux-gnueabi=lib$(1)-*.so
10+
CFG_LIB_DSYM_GLOB_arm-unknown-linux-gnueabi=lib$(1)-*.dylib.dSYM
11+
CFG_CFLAGS_arm-unknown-linux-gnueabi := -D__arm__ -mfpu=vfp $(CFLAGS)
12+
CFG_GCCISH_CFLAGS_arm-unknown-linux-gnueabi := -Wall -g -fPIC -D__arm__ -mfpu=vfp $(CFLAGS)
13+
CFG_GCCISH_CXXFLAGS_arm-unknown-linux-gnueabi := -fno-rtti $(CXXFLAGS)
14+
CFG_GCCISH_LINK_FLAGS_arm-unknown-linux-gnueabi := -shared -fPIC -g
15+
CFG_GCCISH_DEF_FLAG_arm-unknown-linux-gnueabi := -Wl,--export-dynamic,--dynamic-list=
16+
CFG_GCCISH_PRE_LIB_FLAGS_arm-unknown-linux-gnueabi := -Wl,-whole-archive
17+
CFG_GCCISH_POST_LIB_FLAGS_arm-unknown-linux-gnueabi := -Wl,-no-whole-archive
18+
CFG_DEF_SUFFIX_arm-unknown-linux-gnueabi := .linux.def
19+
CFG_LLC_FLAGS_arm-unknown-linux-gnueabi :=
20+
CFG_INSTALL_NAME_arm-unknown-linux-gnueabi =
21+
CFG_EXE_SUFFIX_arm-unknown-linux-gnueabi :=
22+
CFG_WINDOWSY_arm-unknown-linux-gnueabi :=
23+
CFG_UNIXY_arm-unknown-linux-gnueabi := 1
24+
CFG_PATH_MUNGE_arm-unknown-linux-gnueabi := true
25+
CFG_LDPATH_arm-unknown-linux-gnueabi :=
26+
CFG_RUN_arm-unknown-linux-gnueabi=$(2)
27+
CFG_RUN_TARG_arm-unknown-linux-gnueabi=$(call CFG_RUN_arm-unknown-linux-gnueabi,,$(2))
28+
RUSTC_FLAGS_arm-unknown-linux-gnueabi :=
29+
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
30+
CFG_GNU_TRIPLE_arm-unknown-linux-gnueabi := arm-unknown-linux-gnueabi

0 commit comments

Comments
 (0)