You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"BuildArch can be: arm(default), armel, arm64, x86"
9
-
echo"CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.9 or alpine3.13. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
9
+
echo"CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.13 or alpine3.14. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
10
10
echo" for FreeBSD can be: freebsd11, freebsd12, freebsd13"
11
11
echo" for illumos can be: illumos."
12
12
echo"lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
if [ "$desired_version"!="-1" ];then majorVersion="${parts[0]}";break;fi
57
+
if [["$desired_version"!="-1"]];then majorVersion="${parts[0]}";break;fi
65
58
done
66
59
67
-
if [ -z"$majorVersion" ];then
60
+
if [[-z"$majorVersion"]];then
68
61
ifcommand -v "$compiler"> /dev/null;then
69
-
if [ "$(uname)"!="Darwin" ];then
62
+
if [["$(uname)"!="Darwin"]];then
70
63
Write-PipelineTelemetryError -category "Build" -type "warning""Specific version of $compiler not found, falling back to use the one in PATH."
71
64
fi
72
-
exportCC="$(command -v "$compiler")"
73
-
exportCXX="$(command -v "$cxxCompiler")"
65
+
CC="$(command -v "$compiler")"
66
+
CXX="$(command -v "$cxxCompiler")"
74
67
else
75
68
Write-PipelineTelemetryError -category "Build""No usable version of $compiler found."
76
69
exit 1
77
70
fi
78
71
else
79
-
if [ "$compiler"="clang"] &&[ "$majorVersion"-lt 5 ];then
80
-
if [ "$build_arch"="arm"] ||[ "$build_arch"="armel" ];then
72
+
if [["$compiler"=="clang"&&"$majorVersion"-lt 5 ]];then
73
+
if [["$build_arch"=="arm"||"$build_arch"=="armel"]];then
81
74
ifcommand -v "$compiler"> /dev/null;then
82
75
Write-PipelineTelemetryError -category "Build" -type "warning""Found clang version $majorVersion which is not supported on arm/armel architectures, falling back to use clang from PATH."
83
-
exportCC="$(command -v "$compiler")"
84
-
exportCXX="$(command -v "$cxxCompiler")"
76
+
CC="$(command -v "$compiler")"
77
+
CXX="$(command -v "$cxxCompiler")"
85
78
else
86
79
Write-PipelineTelemetryError -category "Build""Found clang version $majorVersion which is not supported on arm/armel architectures, and there is no clang in PATH."
0 commit comments