Skip to content

Commit 48b2ed0

Browse files
committed
---
yaml --- r: 158979 b: refs/heads/auto c: c437fcf h: refs/heads/master i: 158977: f3c52a7 158975: ed5a989 v: v3
1 parent 51388bb commit 48b2ed0

File tree

621 files changed

+20492
-14390
lines changed

Some content is hidden

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

621 files changed

+20492
-14390
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 9e5b283e17bf79073f53b379f171cd96ba4b5b66
13+
refs/heads/auto: c437fcf3e53cd44fb07e0687c883441cd5c52d6a
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/configure

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,24 @@ putvar() {
7676
printf "%-20s := %s\n" $1 "$T" >>config.tmp
7777
}
7878

79+
putpathvar() {
80+
local T
81+
eval T=\$$1
82+
eval TLEN=\${#$1}
83+
if [ $TLEN -gt 35 ]
84+
then
85+
printf "configure: %-20s := %.35s ...\n" $1 "$T"
86+
else
87+
printf "configure: %-20s := %s %s\n" $1 "$T" "$2"
88+
fi
89+
if [ -z "$T" ]
90+
then
91+
printf "%-20s := \n" $1 >>config.tmp
92+
else
93+
printf "%-20s := \"%s\"\n" $1 "$T" >>config.tmp
94+
fi
95+
}
96+
7997
probe() {
8098
local V=$1
8199
shift
@@ -101,7 +119,7 @@ probe() {
101119
fi
102120
done
103121
eval $V=\$T
104-
putvar $V "$VER"
122+
putpathvar $V "$VER"
105123
}
106124

107125
probe_need() {
@@ -291,6 +309,22 @@ envopt() {
291309
fi
292310
}
293311

312+
to_llvm_triple() {
313+
case $1 in
314+
i686-w64-mingw32) echo i686-pc-windows-gnu ;;
315+
x86_64-w64-mingw32) echo x86_64-pc-windows-gnu ;;
316+
*) echo $1 ;;
317+
esac
318+
}
319+
320+
to_gnu_triple() {
321+
case $1 in
322+
i686-pc-windows-gnu) echo i686-w64-mingw32 ;;
323+
x86_64-pc-windows-gnu) echo x86_64-w64-mingw32 ;;
324+
*) echo $1 ;;
325+
esac
326+
}
327+
294328
msg "looking for configure programs"
295329
need_cmd cmp
296330
need_cmd mkdir
@@ -350,37 +384,40 @@ case $CFG_OSTYPE in
350384
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
351385
# MINGW64 on x86_64.
352386
CFG_CPUTYPE=i686
353-
CFG_OSTYPE=w64-mingw32
387+
CFG_OSTYPE=pc-windows-gnu
354388
if [ "$MSYSTEM" = MINGW64 ]
355389
then
356390
CFG_CPUTYPE=x86_64
357-
CFG_OSTYPE=w64-mingw32
358391
fi
359392
;;
360393

394+
MSYS*)
395+
CFG_OSTYPE=pc-windows-gnu
396+
;;
397+
361398
# Thad's Cygwin identifers below
362399

363400
# Vista 32 bit
364401
CYGWIN_NT-6.0)
365-
CFG_OSTYPE=pc-mingw32
402+
CFG_OSTYPE=pc-windows-gnu
366403
CFG_CPUTYPE=i686
367404
;;
368405

369406
# Vista 64 bit
370407
CYGWIN_NT-6.0-WOW64)
371-
CFG_OSTYPE=w64-mingw32
408+
CFG_OSTYPE=pc-windows-gnu
372409
CFG_CPUTYPE=x86_64
373410
;;
374411

375412
# Win 7 32 bit
376413
CYGWIN_NT-6.1)
377-
CFG_OSTYPE=pc-mingw32
414+
CFG_OSTYPE=pc-windows-gnu
378415
CFG_CPUTYPE=i686
379416
;;
380417

381418
# Win 7 64 bit
382419
CYGWIN_NT-6.1-WOW64)
383-
CFG_OSTYPE=w64-mingw32
420+
CFG_OSTYPE=pc-windows-gnu
384421
CFG_CPUTYPE=x86_64
385422
;;
386423

@@ -466,7 +503,6 @@ opt llvm-assertions 1 "build LLVM with assertions"
466503
opt debug 1 "build with extra debug fun"
467504
opt ratchet-bench 0 "ratchet benchmarks"
468505
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
469-
opt mingw-cross 0 "cross-compile for win32 using mingw"
470506
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
471507
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
472508
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
@@ -487,7 +523,6 @@ valopt llvm-root "" "set LLVM root"
487523
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
488524
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
489525
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
490-
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
491526

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

539+
# Temporarily support old triples until buildbots get updated
540+
CFG_BUILD=$(to_llvm_triple $CFG_BUILD)
541+
putvar CFG_BUILD # Yes, this creates a duplicate entry, but the last one wins.
542+
CFG_HOST=$(to_llvm_triple $CFG_HOST)
543+
CFG_TARGET=$(to_llvm_triple $CFG_TARGET)
544+
504545
# On windows we just store the libraries in the bin directory because
505546
# there's no rpath. This is where the build system itself puts libraries;
506547
# --libdir is used to configure the installation directory.
507548
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
508549
CFG_LIBDIR_RELATIVE=lib
509-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
550+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
510551
then
511552
CFG_LIBDIR_RELATIVE=bin
512553
fi
@@ -615,9 +656,9 @@ probe CFG_ADB adb
615656

616657
if [ ! -z "$CFG_PANDOC" ]
617658
then
618-
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc ' |
659+
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc\(.exe\)\? ' |
619660
# extract the first 2 version fields, ignore everything else
620-
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
661+
sed 's/pandoc\(.exe\)\? \([0-9]*\)\.\([0-9]*\).*/\2 \3/')
621662

622663
MIN_PV_MAJOR="1"
623664
MIN_PV_MINOR="9"
@@ -632,7 +673,7 @@ then
632673
fi
633674

634675
BIN_SUF=
635-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
676+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
636677
then
637678
BIN_SUF=.exe
638679
fi
@@ -1100,12 +1141,15 @@ do
11001141

11011142
if [ ${do_reconfigure} -ne 0 ]
11021143
then
1103-
msg "configuring LLVM for $t"
1144+
# LLVM's configure doesn't recognize the new Windows triples yet
1145+
gnu_t=$(to_gnu_triple $t)
1146+
1147+
msg "configuring LLVM for $gnu_t"
11041148

11051149
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
1106-
LLVM_BUILD="--build=$t"
1107-
LLVM_HOST="--host=$t"
1108-
LLVM_TARGET="--target=$t"
1150+
LLVM_BUILD="--build=$gnu_t"
1151+
LLVM_HOST="--host=$gnu_t"
1152+
LLVM_TARGET="--target=$gnu_t"
11091153

11101154
# Disable unused LLVM features
11111155
LLVM_OPTS="$LLVM_DBG_OPTS $LLVM_ASSERTION_OPTS --disable-docs --enable-bindings=none"
@@ -1119,7 +1163,7 @@ do
11191163
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
11201164
# Also note that pthreads works badly on mingw-w64 systems: #8996
11211165
case "$CFG_BUILD" in
1122-
(*-mingw32)
1166+
(*-windows-*)
11231167
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
11241168
;;
11251169
esac
@@ -1269,6 +1313,7 @@ putvar CFG_HOST
12691313
putvar CFG_TARGET
12701314
putvar CFG_LIBDIR_RELATIVE
12711315
putvar CFG_DISABLE_MANAGE_SUBMODULES
1316+
putvar CFG_ANDROID_CROSS_PATH
12721317
putvar CFG_MANDIR
12731318

12741319
# Avoid spurious warnings from clang by feeding it original source on
@@ -1303,8 +1348,7 @@ do
13031348
done
13041349

13051350
# Munge any paths that appear in config.mk back to posix-y
1306-
perl -i.bak -p -e 's@ ([a-zA-Z]):[/\\]@ /\1/@go;' \
1307-
-e 's@\\@/@go;' config.tmp
1351+
perl -i.bak -p -e 's@ ([a-zA-Z]):[/\\]@ /\1/@go;' config.tmp
13081352
rm -f config.tmp.bak
13091353

13101354
msg

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CFG_SDK_NAME_arm-apple-ios = iphoneos
33
CFG_SDK_ARCHS_arm-apple-ios = armv7
44
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
55
CFG_IOS_SDK = $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
6-
CFG_IOS_FLAGS = -target armv7-apple-darwin -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
6+
CFG_IOS_FLAGS = -target armv7-apple-ios -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
77
CC_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
88
CXX_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
99
CPP_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
@@ -32,3 +32,4 @@ CFG_RUN_arm-apple-ios = $(2)
3232
CFG_RUN_TARG_arm-apple-ios = $(call CFG_RUN_arm-apple-ios,,$(2))
3333
RUSTC_FLAGS_arm-apple-ios := -C relocation_model=pic
3434
RUSTC_CROSS_FLAGS_arm-apple-ios :=-C relocation_model=pic
35+
CFG_GNU_TRIPLE_arm-apple-ios := arm-apple-ios

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ CFG_RUN_arm-linux-androideabi=
2626
CFG_RUN_TARG_arm-linux-androideabi=
2727
RUSTC_FLAGS_arm-linux-androideabi :=
2828
RUSTC_CROSS_FLAGS_arm-linux-androideabi :=
29+
CFG_GNU_TRIPLE_arm-linux-androideabi := arm-linux-androideabi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ CFG_RUN_arm-unknown-linux-gnueabi=$(2)
2727
CFG_RUN_TARG_arm-unknown-linux-gnueabi=$(call CFG_RUN_arm-unknown-linux-gnueabi,,$(2))
2828
RUSTC_FLAGS_arm-unknown-linux-gnueabi :=
2929
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
30+
CFG_GNU_TRIPLE_arm-unknown-linux-gnueabi := arm-unknown-linux-gnueabi

branches/auto/mk/cfg/arm-unknown-linux-gnueabihf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ CFG_RUN_arm-unknown-linux-gnueabihf=$(2)
2727
CFG_RUN_TARG_arm-unknown-linux-gnueabihf=$(call CFG_RUN_arm-unknown-linux-gnueabihf,,$(2))
2828
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v6,+vfp2
2929
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabihf :=
30+
CFG_GNU_TRIPLE_arm-unknown-linux-gnueabihf := arm-unknown-linux-gnueabihf

branches/auto/mk/cfg/i386-apple-ios

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ CFG_LDPATH_i386-apple-ios =
3131
CFG_RUN_i386-apple-ios = $(2)
3232
CFG_RUN_TARG_i386-apple-ios = $(call CFG_RUN_i386-apple-ios,,$(2))
3333
CFG_JEMALLOC_CFLAGS_i386-apple-ios = -target i386-apple-ios -Wl,-syslibroot $(CFG_IOSSIM_SDK) -Wl,-no_compact_unwind
34+
CFG_GNU_TRIPLE_i386-apple-ios := i386-apple-ios

branches/auto/mk/cfg/i586-mingw32msvc

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

branches/auto/mk/cfg/i686-apple-darwin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ CFG_PATH_MUNGE_i686-apple-darwin := true
2424
CFG_LDPATH_i686-apple-darwin :=
2525
CFG_RUN_i686-apple-darwin=$(2)
2626
CFG_RUN_TARG_i686-apple-darwin=$(call CFG_RUN_i686-apple-darwin,,$(2))
27-
27+
CFG_GNU_TRIPLE_i686-apple-darwin := i686-apple-darwin
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# i686-pc-windows-gnu configuration
2+
CROSS_PREFIX_i686-pc-windows-gnu=i686-pc-windows-gnu-
3+
CC_i686-pc-windows-gnu=gcc
4+
CXX_i686-pc-windows-gnu=g++
5+
CPP_i686-pc-windows-gnu=gcc -E
6+
AR_i686-pc-windows-gnu=ar
7+
CFG_LIB_NAME_i686-pc-windows-gnu=$(1).dll
8+
CFG_STATIC_LIB_NAME_i686-pc-windows-gnu=$(1).lib
9+
CFG_LIB_GLOB_i686-pc-windows-gnu=$(1)-*.dll
10+
CFG_LIB_DSYM_GLOB_i686-pc-windows-gnu=$(1)-*.dylib.dSYM
11+
CFG_CFLAGS_i686-pc-windows-gnu := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
12+
CFG_GCCISH_CFLAGS_i686-pc-windows-gnu := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS)
13+
CFG_GCCISH_CXXFLAGS_i686-pc-windows-gnu := -fno-rtti $(CXXFLAGS)
14+
CFG_GCCISH_LINK_FLAGS_i686-pc-windows-gnu := -shared -g -m32
15+
CFG_GCCISH_DEF_FLAG_i686-pc-windows-gnu :=
16+
CFG_GCCISH_PRE_LIB_FLAGS_i686-pc-windows-gnu :=
17+
CFG_GCCISH_POST_LIB_FLAGS_i686-pc-windows-gnu :=
18+
CFG_DEF_SUFFIX_i686-pc-windows-gnu := .windows.def
19+
CFG_LLC_FLAGS_i686-pc-windows-gnu :=
20+
CFG_INSTALL_NAME_i686-pc-windows-gnu =
21+
CFG_EXE_SUFFIX_i686-pc-windows-gnu := .exe
22+
CFG_WINDOWSY_i686-pc-windows-gnu := 1
23+
CFG_UNIXY_i686-pc-windows-gnu :=
24+
CFG_PATH_MUNGE_i686-pc-windows-gnu :=
25+
CFG_LDPATH_i686-pc-windows-gnu :=$(CFG_LDPATH_i686-pc-windows-gnu):$(PATH)
26+
CFG_RUN_i686-pc-windows-gnu=PATH="$(CFG_LDPATH_i686-pc-windows-gnu):$(1)" $(2)
27+
CFG_RUN_TARG_i686-pc-windows-gnu=$(call CFG_RUN_i686-pc-windows-gnu,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
28+
CFG_GNU_TRIPLE_i686-pc-windows-gnu := i686-w64-mingw32

branches/auto/mk/cfg/i686-unknown-linux-gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ CFG_PATH_MUNGE_i686-unknown-linux-gnu := true
2424
CFG_LDPATH_i686-unknown-linux-gnu :=
2525
CFG_RUN_i686-unknown-linux-gnu=$(2)
2626
CFG_RUN_TARG_i686-unknown-linux-gnu=$(call CFG_RUN_i686-unknown-linux-gnu,,$(2))
27-
27+
CFG_GNU_TRIPLE_i686-unknown-linux-gnu := i686-unknown-linux-gnu

branches/auto/mk/cfg/i686-w64-mingw32

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

branches/auto/mk/cfg/mips-unknown-linux-gnu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ CFG_LDPATH_mips-unknown-linux-gnu :=
2525
CFG_RUN_mips-unknown-linux-gnu=
2626
CFG_RUN_TARG_mips-unknown-linux-gnu=
2727
RUSTC_FLAGS_mips-unknown-linux-gnu := -C target-cpu=mips32r2 -C target-feature="+mips32r2,+o32" -C soft-float
28+
CFG_GNU_TRIPLE_mips-unknown-linux-gnu := mips-unknown-linux-gnu

branches/auto/mk/cfg/mipsel-linux

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

0 commit comments

Comments
 (0)