Skip to content

Commit 23baf0a

Browse files
committed
---
yaml --- r: 235939 b: refs/heads/stable c: 3ebf706 h: refs/heads/master i: 235937: 16b4f53 235935: ca7b9b8 v: v3
1 parent eeb1da6 commit 23baf0a

File tree

401 files changed

+4283
-12816
lines changed

Some content is hidden

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

401 files changed

+4283
-12816
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: ba324694d6116cb0a9a73e29acb043d251a1e6f5
32+
refs/heads/stable: 3ebf706cf7db582c8b3a1f61c92184daeaf1f811
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/configure

Lines changed: 46 additions & 81 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,7 +984,7 @@ 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)
@@ -1015,7 +1000,7 @@ then
10151000
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
10161001
fi
10171002

1018-
if [ -n "$CFG_OSX_CLANG_VERSION" ]
1003+
if [ ! -z "$CFG_OSX_CLANG_VERSION" ]
10191004
then
10201005
case $CFG_OSX_CLANG_VERSION in
10211006
(7.0*)
@@ -1044,7 +1029,7 @@ then
10441029
esac
10451030
fi
10461031

1047-
if [ -n "$CFG_ENABLE_CCACHE" ]
1032+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
10481033
then
10491034
if [ -z "$CFG_CCACHE" ]
10501035
then
@@ -1114,24 +1099,20 @@ do
11141099
fi
11151100

11161101
case $i in
1117-
*android*)
1118-
upper_snake_target=$(echo "$i" | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
1119-
eval ndk=\$"CFG_${upper_snake_target}_NDK"
1120-
if [ -z "$ndk" ]
1102+
arm-linux-androideabi)
1103+
1104+
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc ]
11211105
then
1122-
ndk=$CFG_ANDROID_CROSS_PATH
1123-
eval "CFG_${upper_snake_target}_NDK"=$CFG_ANDROID_CROSS_PATH
1124-
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"
11251115
fi
1126-
1127-
# Perform a basic sanity check of the NDK
1128-
for android_ndk_tool in "$ndk/bin/$i-gcc" "$ndk/bin/$i-g++" "$ndk/bin/$i-ar"
1129-
do
1130-
if [ ! -f $android_ndk_tool ]
1131-
then
1132-
err "NDK tool $android_ndk_tool not found (bad or missing --$i-ndk option?)"
1133-
fi
1134-
done
11351116
;;
11361117

11371118
arm-apple-darwin)
@@ -1183,13 +1164,8 @@ do
11831164
# INCLUDE and LIB variables for MSVC so we can set those in the
11841165
# build system as well.
11851166
install=$(reg QUERY \
1186-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
1167+
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
11871168
-v InstallDir)
1188-
if [ -z "$install" ]; then
1189-
install=$(reg QUERY \
1190-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
1191-
-v InstallDir)
1192-
fi
11931169
need_ok "couldn't find visual studio install root"
11941170
CFG_MSVC_ROOT=$(echo "$install" | grep InstallDir | sed 's/.*REG_SZ[ ]*//')
11951171
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
@@ -1210,7 +1186,7 @@ do
12101186
;;
12111187
esac
12121188
bindir="${CFG_MSVC_ROOT}/VC/bin"
1213-
if [ -n "$msvc_part" ]; then
1189+
if [ ! -z "$msvc_part" ]; then
12141190
bindir="$bindir/$msvc_part"
12151191
fi
12161192
eval CFG_MSVC_BINDIR_$bits="\"$bindir\""
@@ -1240,7 +1216,7 @@ do
12401216
esac
12411217
done
12421218

1243-
if [ -n "$CFG_PERF" ]
1219+
if [ ! -z "$CFG_PERF" ]
12441220
then
12451221
HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
12461222
if [ -z "$HAVE_PERF_LOGFD" ];
@@ -1350,11 +1326,11 @@ then
13501326
"${CFG_GIT}" submodule init
13511327

13521328
# Disable submodules that we're not using
1353-
if [ -n "${CFG_LLVM_ROOT}" ]; then
1329+
if [ ! -z "${CFG_LLVM_ROOT}" ]; then
13541330
msg "git: submodule deinit src/llvm"
13551331
"${CFG_GIT}" submodule deinit src/llvm
13561332
fi
1357-
if [ -n "${CFG_JEMALLOC_ROOT}" ]; then
1333+
if [ ! -z "${CFG_JEMALLOC_ROOT}" ]; then
13581334
msg "git: submodule deinit src/jemalloc"
13591335
"${CFG_GIT}" submodule deinit src/jemalloc
13601336
fi
@@ -1401,7 +1377,7 @@ do
14011377
if [ -z $CFG_LLVM_ROOT ]
14021378
then
14031379
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
1404-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]
1380+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
14051381
then
14061382
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"
14071383
# Just use LLVM straight from its build directory to
@@ -1457,7 +1433,7 @@ do
14571433
msg "configuring LLVM for $t with cmake"
14581434

14591435
CMAKE_ARGS="-DLLVM_INCLUDE_TESTS=OFF"
1460-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
1436+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
14611437
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
14621438
else
14631439
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release"
@@ -1471,22 +1447,12 @@ do
14711447

14721448
msg "configuring LLVM with:"
14731449
msg "$CMAKE_ARGS"
1474-
case "$CFG_MSVC_ROOT" in
1475-
*14.0*)
1476-
generator="Visual Studio 14 2015"
1477-
;;
1478-
*12.0*)
1479-
generator="Visual Studio 12 2013"
1480-
;;
1481-
*)
1482-
err "can't determine generator for LLVM cmake"
1483-
;;
1484-
esac
14851450
case "$t" in
14861451
x86_64-*)
1487-
generator="$generator Win64"
1452+
generator="Visual Studio 12 2013 Win64"
14881453
;;
14891454
i686-*)
1455+
generator="Visual Studio 12 2013"
14901456
;;
14911457
*)
14921458
err "can only build LLVM for x86 platforms"
@@ -1559,7 +1525,7 @@ do
15591525

15601526
(*)
15611527
msg "inferring LLVM_CXX/CC from CXX/CC = $CXX/$CC"
1562-
if [ -n "$CFG_ENABLE_CCACHE" ]
1528+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
15631529
then
15641530
if [ -z "$CFG_CCACHE" ]
15651531
then
@@ -1688,26 +1654,25 @@ putvar CFG_HOST
16881654
putvar CFG_TARGET
16891655
putvar CFG_LIBDIR_RELATIVE
16901656
putvar CFG_DISABLE_MANAGE_SUBMODULES
1691-
putvar CFG_AARCH64_LINUX_ANDROID_NDK
1692-
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
1657+
putvar CFG_ANDROID_CROSS_PATH
16931658
putvar CFG_MANDIR
16941659

16951660
# Avoid spurious warnings from clang by feeding it original source on
16961661
# ccache-miss rather than preprocessed input.
1697-
if [ -n "$CFG_ENABLE_CCACHE" ] && [ -n "$CFG_USING_CLANG" ]
1662+
if [ ! -z "$CFG_ENABLE_CCACHE" ] && [ ! -z "$CFG_USING_CLANG" ]
16981663
then
16991664
CFG_CCACHE_CPP2=1
17001665
putvar CFG_CCACHE_CPP2
17011666
fi
17021667

1703-
if [ -n "$CFG_ENABLE_CCACHE" ]
1668+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
17041669
then
17051670
CFG_CCACHE_BASEDIR=${CFG_SRC_DIR}
17061671
putvar CFG_CCACHE_BASEDIR
17071672
fi
17081673

17091674

1710-
if [ -n $BAD_PANDOC ]
1675+
if [ ! -z $BAD_PANDOC ]
17111676
then
17121677
CFG_PANDOC=
17131678
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)