Skip to content

Commit 16df1c3

Browse files
committed
---
yaml --- r: 159802 b: refs/heads/try c: d108613 h: refs/heads/master v: v3
1 parent 1c99030 commit 16df1c3

File tree

1,107 files changed

+19955
-26547
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

+19955
-26547
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: 8a25e071e8ca281189663d23de5e317e87004a48
5+
refs/heads/try: d108613ba00edea07ff7e233e3e9c0766132cd3e
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: 2 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -5,104 +5,8 @@
55
# email addresses.
66
#
77

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-
8+
Elly Jones <[email protected]>
9+
6410
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-
8411
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-
9312
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: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -291,22 +291,6 @@ 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-
310294
msg "looking for configure programs"
311295
need_cmd cmp
312296
need_cmd mkdir
@@ -366,40 +350,37 @@ case $CFG_OSTYPE in
366350
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
367351
# MINGW64 on x86_64.
368352
CFG_CPUTYPE=i686
369-
CFG_OSTYPE=pc-windows-gnu
353+
CFG_OSTYPE=w64-mingw32
370354
if [ "$MSYSTEM" = MINGW64 ]
371355
then
372356
CFG_CPUTYPE=x86_64
357+
CFG_OSTYPE=w64-mingw32
373358
fi
374359
;;
375360

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

382363
# Vista 32 bit
383364
CYGWIN_NT-6.0)
384-
CFG_OSTYPE=pc-windows-gnu
365+
CFG_OSTYPE=pc-mingw32
385366
CFG_CPUTYPE=i686
386367
;;
387368

388369
# Vista 64 bit
389370
CYGWIN_NT-6.0-WOW64)
390-
CFG_OSTYPE=pc-windows-gnu
371+
CFG_OSTYPE=w64-mingw32
391372
CFG_CPUTYPE=x86_64
392373
;;
393374

394375
# Win 7 32 bit
395376
CYGWIN_NT-6.1)
396-
CFG_OSTYPE=pc-windows-gnu
377+
CFG_OSTYPE=pc-mingw32
397378
CFG_CPUTYPE=i686
398379
;;
399380

400381
# Win 7 64 bit
401382
CYGWIN_NT-6.1-WOW64)
402-
CFG_OSTYPE=pc-windows-gnu
383+
CFG_OSTYPE=w64-mingw32
403384
CFG_CPUTYPE=x86_64
404385
;;
405386

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

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

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-
527504
# On windows we just store the libraries in the bin directory because
528505
# there's no rpath. This is where the build system itself puts libraries;
529506
# --libdir is used to configure the installation directory.
530507
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
531508
CFG_LIBDIR_RELATIVE=lib
532-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
509+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
533510
then
534511
CFG_LIBDIR_RELATIVE=bin
535512
fi
@@ -655,7 +632,7 @@ then
655632
fi
656633

657634
BIN_SUF=
658-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
635+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
659636
then
660637
BIN_SUF=.exe
661638
fi
@@ -865,7 +842,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
865842
CFG_MANDIR=${CFG_MANDIR%/}
866843
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
867844
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
868-
CFG_SUPPORTED_TARGET="$(ls ${CFG_SRC_DIR}mk/cfg)"
845+
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* ${CFG_SRC_DIR}mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
869846

870847
# copy host-triples to target-triples so that hosts are a subset of targets
871848
V_TEMP=""
@@ -1012,7 +989,6 @@ do
1012989
make_dir $h/test/doc-guide-container
1013990
make_dir $h/test/doc-guide-tasks
1014991
make_dir $h/test/doc-guide-plugin
1015-
make_dir $h/test/doc-guide-crates
1016992
make_dir $h/test/doc-rust
1017993
done
1018994

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

11241100
if [ ${do_reconfigure} -ne 0 ]
11251101
then
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"
1102+
msg "configuring LLVM for $t"
11301103

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

11361109
# Disable unused LLVM features
11371110
LLVM_OPTS="$LLVM_DBG_OPTS $LLVM_ASSERTION_OPTS --disable-docs --enable-bindings=none"
@@ -1145,7 +1118,7 @@ do
11451118
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
11461119
# Also note that pthreads works badly on mingw-w64 systems: #8996
11471120
case "$CFG_BUILD" in
1148-
(*-windows-*)
1121+
(*-mingw32)
11491122
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
11501123
;;
11511124
esac
@@ -1295,7 +1268,6 @@ putvar CFG_HOST
12951268
putvar CFG_TARGET
12961269
putvar CFG_LIBDIR_RELATIVE
12971270
putvar CFG_DISABLE_MANAGE_SUBMODULES
1298-
putvar CFG_ANDROID_CROSS_PATH
12991271
putvar CFG_MANDIR
13001272

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

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

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

branches/try/mk/cfg/arm-linux-androideabi

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

branches/try/mk/cfg/arm-unknown-linux-gnueabi

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

0 commit comments

Comments
 (0)