Skip to content

Commit 603049a

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20210916.4
Microsoft.DotNet.Arcade.Sdk From Version 6.0.0-beta.21167.3 -> To Version 7.0.0-beta.21466.4
1 parent 0149262 commit 603049a

File tree

5 files changed

+69
-84
lines changed

5 files changed

+69
-84
lines changed

eng/Version.Details.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<ProductDependencies>
44
</ProductDependencies>
55
<ToolsetDependencies>
6-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21459.5">
6+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21466.4">
77
<Uri>https://github.com/dotnet/arcade</Uri>
8-
<Sha>fa4a48044d33222537e6dbd000f8a2adaa7a15c7</Sha>
8+
<Sha>734d875ba2abfb5c8f5f52368e7d4711ee366e31</Sha>
99
<SourceBuild RepoName="arcade" ManagedOnly="true" />
1010
</Dependency>
1111
</ToolsetDependencies>

eng/common/cross/build-rootfs.sh

+10-30
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ usage()
66
{
77
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [--skipunmount] --rootfsdir <directory>]"
88
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."
1010
echo " for FreeBSD can be: freebsd11, freebsd12, freebsd13"
1111
echo " for illumos can be: illumos."
1212
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
@@ -32,9 +32,9 @@ __UbuntuPackages="build-essential"
3232
__AlpinePackages="alpine-base"
3333
__AlpinePackages+=" build-base"
3434
__AlpinePackages+=" linux-headers"
35-
__AlpinePackagesEdgeCommunity=" lldb-dev"
36-
__AlpinePackagesEdgeMain+=" python3"
37-
__AlpinePackagesEdgeMain+=" libedit"
35+
__AlpinePackages+=" lldb-dev"
36+
__AlpinePackages+=" python3"
37+
__AlpinePackages+=" libedit"
3838

3939
# symlinks fixer
4040
__UbuntuPackages+=" symlinks"
@@ -185,23 +185,17 @@ while :; do
185185
__UbuntuRepo=
186186
__Tizen=tizen
187187
;;
188-
alpine|alpine3.9)
188+
alpine|alpine3.13)
189189
__CodeName=alpine
190190
__UbuntuRepo=
191-
__AlpineVersion=3.9
192-
__AlpinePackagesEdgeMain+=" llvm11-libs"
193-
__AlpinePackagesEdgeMain+=" clang-libs"
191+
__AlpineVersion=3.13
192+
__AlpinePackages+=" llvm10-libs"
194193
;;
195-
alpine3.13)
194+
alpine3.14)
196195
__CodeName=alpine
197196
__UbuntuRepo=
198-
__AlpineVersion=3.13
199-
# Alpine 3.13 has all the packages we need in the 3.13 repository
200-
__AlpinePackages+=$__AlpinePackagesEdgeCommunity
201-
__AlpinePackagesEdgeCommunity=
202-
__AlpinePackages+=$__AlpinePackagesEdgeMain
203-
__AlpinePackagesEdgeMain=
204-
__AlpinePackages+=" llvm10-libs"
197+
__AlpineVersion=3.14
198+
__AlpinePackages+=" llvm11-libs"
205199
;;
206200
freebsd11)
207201
__FreeBSDBase="11.3-RELEASE"
@@ -279,20 +273,6 @@ if [[ "$__CodeName" == "alpine" ]]; then
279273
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
280274
add $__AlpinePackages
281275

282-
if [[ -n "$__AlpinePackagesEdgeMain" ]]; then
283-
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
284-
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
285-
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
286-
add $__AlpinePackagesEdgeMain
287-
fi
288-
289-
if [[ -n "$__AlpinePackagesEdgeCommunity" ]]; then
290-
$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk \
291-
-X http://dl-cdn.alpinelinux.org/alpine/edge/community \
292-
-U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
293-
add $__AlpinePackagesEdgeCommunity
294-
fi
295-
296276
rm -r $__ApkToolsDir
297277
elif [[ "$__CodeName" == "freebsd" ]]; then
298278
mkdir -p $__RootfsDir/usr/local/etc

eng/common/cross/toolchain.cmake

+6-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
4444
set(TOOLCHAIN "i686-linux-gnu")
4545
elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
4646
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
47-
set(triple "x86_64-unknown-freebsd11")
47+
set(triple "x86_64-unknown-freebsd12")
4848
elseif (ILLUMOS)
4949
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
5050
set(TOOLCHAIN "x86_64-illumos")
@@ -91,6 +91,9 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
9191
set(CMAKE_CXX_COMPILER_TARGET ${triple})
9292
set(CMAKE_ASM_COMPILER_TARGET ${triple})
9393
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
94+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld")
95+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld")
96+
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld")
9497
elseif(ILLUMOS)
9598
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
9699

@@ -138,8 +141,8 @@ function(add_toolchain_linker_flag Flag)
138141
if (NOT Config STREQUAL "")
139142
set(CONFIG_SUFFIX "_${Config}")
140143
endif()
141-
set("CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
142-
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
144+
set("CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}_INIT" "${CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}_INIT} ${Flag}" PARENT_SCOPE)
145+
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT} ${Flag}" PARENT_SCOPE)
143146
endfunction()
144147

145148
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
11
#!/usr/bin/env bash
22
#
3-
# This file locates the native compiler with the given name and version and sets the environment variables to locate it.
3+
# This file detects the C/C++ compiler and exports it to the CC/CXX environment variables
44
#
55

6-
source="${BASH_SOURCE[0]}"
7-
8-
# resolve $SOURCE until the file is no longer a symlink
9-
while [[ -h $source ]]; do
10-
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
11-
source="$(readlink "$source")"
12-
13-
# if $source was a relative symlink, we need to resolve it relative to the path where the
14-
# symlink file was located
15-
[[ $source != /* ]] && source="$scriptroot/$source"
16-
done
17-
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
18-
19-
if [ $# -lt 0 ]
20-
then
6+
if [[ "$#" -lt 2 ]]; then
217
echo "Usage..."
22-
echo "find-native-compiler.sh <compiler> <compiler major version> <compiler minor version>"
8+
echo "init-compiler.sh <Architecture> <compiler> <compiler major version> <compiler minor version>"
9+
echo "Specify the target architecture."
2310
echo "Specify the name of compiler (clang or gcc)."
2411
echo "Specify the major version of compiler."
2512
echo "Specify the minor version of compiler."
2613
exit 1
2714
fi
2815

29-
. $scriptroot/../pipeline-logging-functions.sh
16+
. "$( cd -P "$( dirname "$0" )" && pwd )"/../pipeline-logging-functions.sh
3017

31-
compiler="$1"
18+
build_arch="$1"
19+
compiler="$2"
3220
cxxCompiler="$compiler++"
33-
majorVersion="$2"
34-
minorVersion="$3"
21+
majorVersion="$3"
22+
minorVersion="$4"
3523

36-
if [ "$compiler" = "gcc" ]; then cxxCompiler="g++"; fi
24+
# clear the existing CC and CXX from environment
25+
CC=
26+
CXX=
27+
LDFLAGS=
28+
29+
if [[ "$compiler" == "gcc" ]]; then cxxCompiler="g++"; fi
3730

3831
check_version_exists() {
3932
desired_version=-1
@@ -50,38 +43,38 @@ check_version_exists() {
5043
echo "$desired_version"
5144
}
5245

53-
if [ -z "$CLR_CC" ]; then
46+
if [[ -z "$CLR_CC" ]]; then
5447

5548
# Set default versions
56-
if [ -z "$majorVersion" ]; then
49+
if [[ -z "$majorVersion" ]]; then
5750
# note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
58-
if [ "$compiler" = "clang" ]; then versions=( 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
59-
elif [ "$compiler" = "gcc" ]; then versions=( 9 8 7 6 5 4.9 ); fi
51+
if [[ "$compiler" == "clang" ]]; then versions=( 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
52+
elif [[ "$compiler" == "gcc" ]]; then versions=( 11 10 9 8 7 6 5 4.9 ); fi
6053

6154
for version in "${versions[@]}"; do
6255
parts=(${version//./ })
6356
desired_version="$(check_version_exists "${parts[0]}" "${parts[1]}")"
64-
if [ "$desired_version" != "-1" ]; then majorVersion="${parts[0]}"; break; fi
57+
if [[ "$desired_version" != "-1" ]]; then majorVersion="${parts[0]}"; break; fi
6558
done
6659

67-
if [ -z "$majorVersion" ]; then
60+
if [[ -z "$majorVersion" ]]; then
6861
if command -v "$compiler" > /dev/null; then
69-
if [ "$(uname)" != "Darwin" ]; then
62+
if [[ "$(uname)" != "Darwin" ]]; then
7063
Write-PipelineTelemetryError -category "Build" -type "warning" "Specific version of $compiler not found, falling back to use the one in PATH."
7164
fi
72-
export CC="$(command -v "$compiler")"
73-
export CXX="$(command -v "$cxxCompiler")"
65+
CC="$(command -v "$compiler")"
66+
CXX="$(command -v "$cxxCompiler")"
7467
else
7568
Write-PipelineTelemetryError -category "Build" "No usable version of $compiler found."
7669
exit 1
7770
fi
7871
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
8174
if command -v "$compiler" > /dev/null; then
8275
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-
export CC="$(command -v "$compiler")"
84-
export CXX="$(command -v "$cxxCompiler")"
76+
CC="$(command -v "$compiler")"
77+
CXX="$(command -v "$cxxCompiler")"
8578
else
8679
Write-PipelineTelemetryError -category "Build" "Found clang version $majorVersion which is not supported on arm/armel architectures, and there is no clang in PATH."
8780
exit 1
@@ -91,31 +84,40 @@ if [ -z "$CLR_CC" ]; then
9184
fi
9285
else
9386
desired_version="$(check_version_exists "$majorVersion" "$minorVersion")"
94-
if [ "$desired_version" = "-1" ]; then
87+
if [[ "$desired_version" == "-1" ]]; then
9588
Write-PipelineTelemetryError -category "Build" "Could not find specific version of $compiler: $majorVersion $minorVersion."
9689
exit 1
9790
fi
9891
fi
9992

100-
if [ -z "$CC" ]; then
101-
export CC="$(command -v "$compiler$desired_version")"
102-
export CXX="$(command -v "$cxxCompiler$desired_version")"
103-
if [ -z "$CXX" ]; then export CXX="$(command -v "$cxxCompiler")"; fi
93+
if [[ -z "$CC" ]]; then
94+
CC="$(command -v "$compiler$desired_version")"
95+
CXX="$(command -v "$cxxCompiler$desired_version")"
96+
if [[ -z "$CXX" ]]; then CXX="$(command -v "$cxxCompiler")"; fi
10497
fi
10598
else
106-
if [ ! -f "$CLR_CC" ]; then
99+
if [[ ! -f "$CLR_CC" ]]; then
107100
Write-PipelineTelemetryError -category "Build" "CLR_CC is set but path '$CLR_CC' does not exist"
108101
exit 1
109102
fi
110-
export CC="$CLR_CC"
111-
export CXX="$CLR_CXX"
103+
CC="$CLR_CC"
104+
CXX="$CLR_CXX"
112105
fi
113106

114-
if [ -z "$CC" ]; then
115-
Write-PipelineTelemetryError -category "Build" "Unable to find $compiler."
107+
if [[ -z "$CC" ]]; then
108+
Write-PipelineTelemetryError -category "Build" "Unable to find $compiler."
116109
exit 1
117110
fi
118111

119-
export CCC_CC="$CC"
120-
export CCC_CXX="$CXX"
121-
export SCAN_BUILD_COMMAND="$(command -v "scan-build$desired_version")"
112+
if [[ "$compiler" == "clang" ]]; then
113+
if command -v "lld$desired_version" > /dev/null; then
114+
# Only lld version >= 9 can be considered stable
115+
if [[ "$majorVersion" -ge 9 ]]; then
116+
LDFLAGS="-fuse-ld=lld"
117+
fi
118+
fi
119+
fi
120+
121+
SCAN_BUILD_COMMAND="$(command -v "scan-build$desired_version")"
122+
123+
export CC CXX LDFLAGS SCAN_BUILD_COMMAND

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"xcopy-msbuild": "16.8.0-preview2.1"
88
},
99
"msbuild-sdks": {
10-
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21459.5"
10+
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21466.4"
1111
}
1212
}

0 commit comments

Comments
 (0)