Skip to content

Commit 8ab6f26

Browse files
committed
---
yaml --- r: 236129 b: refs/heads/stable c: 1ffe345 h: refs/heads/master i: 236127: ba315be v: v3
1 parent f37883a commit 8ab6f26

File tree

490 files changed

+10694
-17544
lines changed

Some content is hidden

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

490 files changed

+10694
-17544
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 8b9ada599747648cd10d9971e97ddb610712b711
32+
refs/heads/stable: 1ffe3453cb2bd4cc031b4f8a4bdb88279e01e094
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
*.rs rust
77
src/etc/pkg/rust-logo.ico binary
88
src/etc/pkg/rust-logo.png binary
9+
src/rt/msvc/* -whitespace
10+
src/rt/valgrind/* -whitespace
911
*.woff binary

branches/stable/configure

Lines changed: 50 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ opt_core() {
283283
fi
284284
done
285285
else
286-
if [ -n "$META" ]
286+
if [ ! -z "$META" ]
287287
then
288288
OP="$OP=<$META>"
289289
fi
@@ -317,23 +317,12 @@ envopt() {
317317
fi
318318

319319
# If script or environment provided a value, save it.
320-
if [ -n "$VV" ]
320+
if [ ! -z "$VV" ]
321321
then
322322
putvar $V
323323
fi
324324
}
325325

326-
enable_if_not_disabled() {
327-
local OP=$1
328-
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
329-
local ENAB_V="CFG_ENABLE_$UOP"
330-
local EXPLICITLY_DISABLED="CFG_DISABLE_${UOP}_PROVIDED"
331-
eval VV=\$$EXPLICITLY_DISABLED
332-
if [ -z "$VV" ]; then
333-
eval $ENAB_V=1
334-
fi
335-
}
336-
337326
to_llvm_triple() {
338327
case $1 in
339328
i686-w64-mingw32) echo i686-pc-windows-gnu ;;
@@ -601,9 +590,7 @@ valopt llvm-root "" "set LLVM root"
601590
valopt python "" "set path to python"
602591
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
603592
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
604-
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path (deprecated)"
605-
valopt arm-linux-androideabi-ndk "" "arm-linux-androideabi NDK standalone path"
606-
valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
593+
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
607594
valopt release-channel "dev" "the name of the release channel to build"
608595
valopt musl-root "/usr/local" "MUSL root installation directory"
609596

@@ -684,12 +671,10 @@ if [ -n "$CFG_ENABLE_DEBUG" ]; then
684671
CFG_DISABLE_OPTIMIZE=1
685672
CFG_DISABLE_OPTIMIZE_CXX=1
686673
fi
687-
688-
# Set following variables to 1 unless setting already provided
689-
enable_if_not_disabled debug-assertions
690-
enable_if_not_disabled debug-jemalloc
691-
enable_if_not_disabled debuginfo
692-
enable_if_not_disabled llvm-assertions
674+
CFG_ENABLE_DEBUG_ASSERTIONS=1
675+
CFG_ENABLE_DEBUG_JEMALLOC=1
676+
CFG_ENABLE_DEBUGINFO=1
677+
CFG_ENABLE_LLVM_ASSERTIONS=1
693678
fi
694679

695680
# OK, now write the debugging options
@@ -769,7 +754,7 @@ probe CFG_LLDB lldb
769754
# On MacOS X, invoking `javac` pops up a dialog if the JDK is not
770755
# installed. Since `javac` is only used if `antlr4` is available,
771756
# probe for it only in this case.
772-
if [ -n "$CFG_ANTLR4" ]
757+
if [ ! -z "$CFG_ANTLR4" ]
773758
then
774759
probe CFG_JAVAC javac
775760
fi
@@ -788,14 +773,14 @@ then
788773
fi
789774
fi
790775

791-
if [ -n "$CFG_GDB" ]
776+
if [ ! -z "$CFG_GDB" ]
792777
then
793778
# Store GDB's version
794779
CFG_GDB_VERSION=$($CFG_GDB --version 2>/dev/null | head -1)
795780
putvar CFG_GDB_VERSION
796781
fi
797782

798-
if [ -n "$CFG_LLDB" ]
783+
if [ ! -z "$CFG_LLDB" ]
799784
then
800785
# Store LLDB's version
801786
CFG_LLDB_VERSION=$($CFG_LLDB --version 2>/dev/null | head -1)
@@ -821,7 +806,7 @@ step_msg "looking for target specific programs"
821806

822807
probe CFG_ADB adb
823808

824-
if [ -n "$CFG_PANDOC" ]
809+
if [ ! -z "$CFG_PANDOC" ]
825810
then
826811
# Extract "MAJOR MINOR" from Pandoc's version number
827812
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc' |
@@ -847,7 +832,7 @@ then
847832
BIN_SUF=.exe
848833
fi
849834

850-
if [ -n "$CFG_ENABLE_LOCAL_RUST" ]
835+
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
851836
then
852837
system_rustc=$(which rustc)
853838
if [ -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
@@ -932,18 +917,18 @@ fi
932917

933918
# Okay, at this point, we have made up our minds about whether we are
934919
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
935-
if [ -n "$CFG_ENABLE_CLANG" ]
920+
if [ ! -z "$CFG_ENABLE_CLANG" ]
936921
then
937922
putvar CFG_ENABLE_CLANG
938923
fi
939924

940925
# Same with jemalloc. save the setting here.
941-
if [ -n "$CFG_DISABLE_JEMALLOC" ]
926+
if [ ! -z "$CFG_DISABLE_JEMALLOC" ]
942927
then
943928
putvar CFG_DISABLE_JEMALLOC
944929
fi
945930

946-
if [ -n "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
931+
if [ ! -z "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
947932
then
948933
step_msg "using custom LLVM at $CFG_LLVM_ROOT"
949934

@@ -972,7 +957,7 @@ fi
972957
# CFG_ENABLE_CLANG is set, that indicates that we are opting into
973958
# running such safeguards.
974959

975-
if [ -n "$CC" ]
960+
if [ ! -z "$CC" ]
976961
then
977962
msg "skipping compiler inference steps; using provided CC=$CC"
978963
CFG_CC="$CC"
@@ -985,7 +970,7 @@ then
985970
putvar CFG_USING_CLANG
986971
fi
987972
else
988-
if [ -n "$CFG_ENABLE_CLANG" ]
973+
if [ ! -z "$CFG_ENABLE_CLANG" ]
989974
then
990975
if [ -z "$CFG_CLANG" ]
991976
then
@@ -999,21 +984,23 @@ else
999984
fi
1000985
fi
1001986

1002-
if [ -n "$CFG_ENABLE_CLANG" ]
987+
if [ ! -z "$CFG_ENABLE_CLANG" ]
1003988
then
1004989
case "$CC" in
1005990
(''|*clang)
1006991
CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version)
1007992

1008-
if echo $CFG_CLANG_REPORTED_VERSION | grep -q "(based on LLVM "; then
993+
if [[ $CFG_CLANG_REPORTED_VERSION == *"(based on LLVM "* ]]
994+
then
1009995
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/')
1010-
elif echo $CFG_CLANG_REPORTED_VERSION | grep -q "Apple LLVM"; then
996+
elif [[ $CFG_CLANG_REPORTED_VERSION == "Apple LLVM"* ]]
997+
then
1011998
CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
1012999
else
10131000
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
10141001
fi
10151002

1016-
if [ -n "$CFG_OSX_CLANG_VERSION" ]
1003+
if [ ! -z "$CFG_OSX_CLANG_VERSION" ]
10171004
then
10181005
case $CFG_OSX_CLANG_VERSION in
10191006
(7.0*)
@@ -1042,7 +1029,7 @@ then
10421029
esac
10431030
fi
10441031

1045-
if [ -n "$CFG_ENABLE_CCACHE" ]
1032+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
10461033
then
10471034
if [ -z "$CFG_CCACHE" ]
10481035
then
@@ -1112,24 +1099,20 @@ do
11121099
fi
11131100

11141101
case $i in
1115-
*android*)
1116-
upper_snake_target=$(echo "$i" | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
1117-
eval ndk=\$"CFG_${upper_snake_target}_NDK"
1118-
if [ -z "$ndk" ]
1102+
arm-linux-androideabi)
1103+
1104+
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc ]
11191105
then
1120-
ndk=$CFG_ANDROID_CROSS_PATH
1121-
eval "CFG_${upper_snake_target}_NDK"=$CFG_ANDROID_CROSS_PATH
1122-
warn "generic/default Android NDK option is deprecated (use --$i-ndk option instead)"
1106+
err "NDK $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc not found"
1107+
fi
1108+
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-g++ ]
1109+
then
1110+
err "NDK $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-g++ not found"
1111+
fi
1112+
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-ar ]
1113+
then
1114+
err "NDK $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-ar not found"
11231115
fi
1124-
1125-
# Perform a basic sanity check of the NDK
1126-
for android_ndk_tool in "$ndk/bin/$i-gcc" "$ndk/bin/$i-g++" "$ndk/bin/$i-ar"
1127-
do
1128-
if [ ! -f $android_ndk_tool ]
1129-
then
1130-
err "NDK tool $android_ndk_tool not found (bad or missing --$i-ndk option?)"
1131-
fi
1132-
done
11331116
;;
11341117

11351118
arm-apple-darwin)
@@ -1181,13 +1164,8 @@ do
11811164
# INCLUDE and LIB variables for MSVC so we can set those in the
11821165
# build system as well.
11831166
install=$(reg QUERY \
1184-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
1167+
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
11851168
-v InstallDir)
1186-
if [ -z "$install" ]; then
1187-
install=$(reg QUERY \
1188-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
1189-
-v InstallDir)
1190-
fi
11911169
need_ok "couldn't find visual studio install root"
11921170
CFG_MSVC_ROOT=$(echo "$install" | grep InstallDir | sed 's/.*REG_SZ[ ]*//')
11931171
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
@@ -1208,7 +1186,7 @@ do
12081186
;;
12091187
esac
12101188
bindir="${CFG_MSVC_ROOT}/VC/bin"
1211-
if [ -n "$msvc_part" ]; then
1189+
if [ ! -z "$msvc_part" ]; then
12121190
bindir="$bindir/$msvc_part"
12131191
fi
12141192
eval CFG_MSVC_BINDIR_$bits="\"$bindir\""
@@ -1238,7 +1216,7 @@ do
12381216
esac
12391217
done
12401218

1241-
if [ -n "$CFG_PERF" ]
1219+
if [ ! -z "$CFG_PERF" ]
12421220
then
12431221
HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
12441222
if [ -z "$HAVE_PERF_LOGFD" ];
@@ -1348,11 +1326,11 @@ then
13481326
"${CFG_GIT}" submodule init
13491327

13501328
# Disable submodules that we're not using
1351-
if [ -n "${CFG_LLVM_ROOT}" ]; then
1329+
if [ ! -z "${CFG_LLVM_ROOT}" ]; then
13521330
msg "git: submodule deinit src/llvm"
13531331
"${CFG_GIT}" submodule deinit src/llvm
13541332
fi
1355-
if [ -n "${CFG_JEMALLOC_ROOT}" ]; then
1333+
if [ ! -z "${CFG_JEMALLOC_ROOT}" ]; then
13561334
msg "git: submodule deinit src/jemalloc"
13571335
"${CFG_GIT}" submodule deinit src/jemalloc
13581336
fi
@@ -1399,7 +1377,7 @@ do
13991377
if [ -z $CFG_LLVM_ROOT ]
14001378
then
14011379
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
1402-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]
1380+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
14031381
then
14041382
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"
14051383
# Just use LLVM straight from its build directory to
@@ -1455,7 +1433,7 @@ do
14551433
msg "configuring LLVM for $t with cmake"
14561434

14571435
CMAKE_ARGS="-DLLVM_INCLUDE_TESTS=OFF"
1458-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
1436+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
14591437
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
14601438
else
14611439
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release"
@@ -1469,22 +1447,12 @@ do
14691447

14701448
msg "configuring LLVM with:"
14711449
msg "$CMAKE_ARGS"
1472-
case "$CFG_MSVC_ROOT" in
1473-
*14.0*)
1474-
generator="Visual Studio 14 2015"
1475-
;;
1476-
*12.0*)
1477-
generator="Visual Studio 12 2013"
1478-
;;
1479-
*)
1480-
err "can't determine generator for LLVM cmake"
1481-
;;
1482-
esac
14831450
case "$t" in
14841451
x86_64-*)
1485-
generator="$generator Win64"
1452+
generator="Visual Studio 12 2013 Win64"
14861453
;;
14871454
i686-*)
1455+
generator="Visual Studio 12 2013"
14881456
;;
14891457
*)
14901458
err "can only build LLVM for x86 platforms"
@@ -1557,7 +1525,7 @@ do
15571525

15581526
(*)
15591527
msg "inferring LLVM_CXX/CC from CXX/CC = $CXX/$CC"
1560-
if [ -n "$CFG_ENABLE_CCACHE" ]
1528+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
15611529
then
15621530
if [ -z "$CFG_CCACHE" ]
15631531
then
@@ -1686,26 +1654,25 @@ putvar CFG_HOST
16861654
putvar CFG_TARGET
16871655
putvar CFG_LIBDIR_RELATIVE
16881656
putvar CFG_DISABLE_MANAGE_SUBMODULES
1689-
putvar CFG_AARCH64_LINUX_ANDROID_NDK
1690-
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
1657+
putvar CFG_ANDROID_CROSS_PATH
16911658
putvar CFG_MANDIR
16921659

16931660
# Avoid spurious warnings from clang by feeding it original source on
16941661
# ccache-miss rather than preprocessed input.
1695-
if [ -n "$CFG_ENABLE_CCACHE" ] && [ -n "$CFG_USING_CLANG" ]
1662+
if [ ! -z "$CFG_ENABLE_CCACHE" ] && [ ! -z "$CFG_USING_CLANG" ]
16961663
then
16971664
CFG_CCACHE_CPP2=1
16981665
putvar CFG_CCACHE_CPP2
16991666
fi
17001667

1701-
if [ -n "$CFG_ENABLE_CCACHE" ]
1668+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
17021669
then
17031670
CFG_CCACHE_BASEDIR=${CFG_SRC_DIR}
17041671
putvar CFG_CCACHE_BASEDIR
17051672
fi
17061673

17071674

1708-
if [ -n $BAD_PANDOC ]
1675+
if [ ! -z $BAD_PANDOC ]
17091676
then
17101677
CFG_PANDOC=
17111678
putvar CFG_PANDOC

branches/stable/mk/cfg/aarch64-linux-android.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# aarch64-linux-android configuration
22
# CROSS_PREFIX_aarch64-linux-android-
3-
CC_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc
4-
CXX_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-g++
5-
CPP_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc -E
6-
AR_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-ar
3+
CC_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc
4+
CXX_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-g++
5+
CPP_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc -E
6+
AR_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-ar
77
CFG_LIB_NAME_aarch64-linux-android=lib$(1).so
88
CFG_STATIC_LIB_NAME_aarch64-linux-android=lib$(1).a
99
CFG_LIB_GLOB_aarch64-linux-android=lib$(1)-*.so

branches/stable/mk/cfg/arm-linux-androideabi.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# arm-linux-androideabi configuration
2-
CC_arm-linux-androideabi=$(CFG_ARM_LINUX_ANDROIDEABI_NDK)/bin/arm-linux-androideabi-gcc
3-
CXX_arm-linux-androideabi=$(CFG_ARM_LINUX_ANDROIDEABI_NDK)/bin/arm-linux-androideabi-g++
4-
CPP_arm-linux-androideabi=$(CFG_ARM_LINUX_ANDROIDEABI_NDK)/bin/arm-linux-androideabi-gcc -E
5-
AR_arm-linux-androideabi=$(CFG_ARM_LINUX_ANDROIDEABI_NDK)/bin/arm-linux-androideabi-ar
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
66
CFG_LIB_NAME_arm-linux-androideabi=lib$(1).so
77
CFG_STATIC_LIB_NAME_arm-linux-androideabi=lib$(1).a
88
CFG_LIB_GLOB_arm-linux-androideabi=lib$(1)-*.so

0 commit comments

Comments
 (0)