Skip to content

Commit 1f0e04d

Browse files
[main] Update dependencies from dotnet/arcade (#5493)
[main] Update dependencies from dotnet/arcade
1 parent 03c88ea commit 1f0e04d

File tree

12 files changed

+85
-54
lines changed

12 files changed

+85
-54
lines changed

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<ProductDependencies>
55
</ProductDependencies>
66
<ToolsetDependencies>
7-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24203.1">
7+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24219.5">
88
<Uri>https://github.com/dotnet/arcade</Uri>
9-
<Sha>532f956a119bce77ca279994054d08dbc24418f7</Sha>
9+
<Sha>6b1c5542109fd5d89a9bde9eb6aacb0ad04e18bc</Sha>
1010
</Dependency>
11-
<Dependency Name="Microsoft.DotNet.GenFacades" Version="9.0.0-beta.24203.1">
11+
<Dependency Name="Microsoft.DotNet.GenFacades" Version="9.0.0-beta.24219.5">
1212
<Uri>https://github.com/dotnet/arcade</Uri>
13-
<Sha>532f956a119bce77ca279994054d08dbc24418f7</Sha>
13+
<Sha>6b1c5542109fd5d89a9bde9eb6aacb0ad04e18bc</Sha>
1414
</Dependency>
15-
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="9.0.0-beta.24203.1">
15+
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="9.0.0-beta.24219.5">
1616
<Uri>https://github.com/dotnet/arcade</Uri>
17-
<Sha>532f956a119bce77ca279994054d08dbc24418f7</Sha>
17+
<Sha>6b1c5542109fd5d89a9bde9eb6aacb0ad04e18bc</Sha>
1818
</Dependency>
1919
</ToolsetDependencies>
2020
</Dependencies>

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</PropertyGroup>
1919
<!-- Arcade dependencies -->
2020
<PropertyGroup>
21-
<MicrosoftDotNetGenFacadesPackageVersion>9.0.0-beta.24203.1</MicrosoftDotNetGenFacadesPackageVersion>
22-
<MicrosoftDotNetXUnitExtensionsPackageVersion>9.0.0-beta.24203.1</MicrosoftDotNetXUnitExtensionsPackageVersion>
21+
<MicrosoftDotNetGenFacadesPackageVersion>9.0.0-beta.24219.5</MicrosoftDotNetGenFacadesPackageVersion>
22+
<MicrosoftDotNetXUnitExtensionsPackageVersion>9.0.0-beta.24219.5</MicrosoftDotNetXUnitExtensionsPackageVersion>
2323
</PropertyGroup>
2424
<!-- CoreFx dependencies -->
2525
<PropertyGroup>

eng/common/build.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Param(
1919
[switch] $pack,
2020
[switch] $publish,
2121
[switch] $clean,
22-
[switch] $verticalBuild,
2322
[switch][Alias('pb')]$productBuild,
2423
[switch][Alias('bl')]$binaryLog,
2524
[switch][Alias('nobl')]$excludeCIBinarylog,
@@ -60,7 +59,6 @@ function Print-Usage() {
6059
Write-Host " -sign Sign build outputs"
6160
Write-Host " -publish Publish artifacts (e.g. symbols)"
6261
Write-Host " -clean Clean the solution"
63-
Write-Host " -verticalBuild Run in 'vertical build' infra mode."
6462
Write-Host " -productBuild Build the solution in the way it will be built in the full .NET product (VMR) build (short: -pb)"
6563
Write-Host ""
6664

@@ -124,7 +122,7 @@ function Build {
124122
/p:Deploy=$deploy `
125123
/p:Test=$test `
126124
/p:Pack=$pack `
127-
/p:DotNetBuildRepo=$($productBuild -or $verticalBuild) `
125+
/p:DotNetBuildRepo=$productBuild `
128126
/p:IntegrationTest=$integrationTest `
129127
/p:PerformanceTest=$performanceTest `
130128
/p:Sign=$sign `

eng/common/build.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
6262
restore=false
6363
build=false
6464
source_build=false
65-
vertical_build=false
6665
product_build=false
6766
rebuild=false
6867
test=false
@@ -141,13 +140,6 @@ while [[ $# > 0 ]]; do
141140
restore=true
142141
pack=true
143142
;;
144-
-verticalbuild|-vb)
145-
build=true
146-
vertical_build=true
147-
product_build=true
148-
restore=true
149-
pack=true
150-
;;
151143
-test|-t)
152144
test=true
153145
;;

eng/common/cross/build-rootfs.sh

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ while :; do
142142
case $lowerI in
143143
-\?|-h|--help)
144144
usage
145-
exit 1
146145
;;
147146
arm)
148147
__BuildArch=arm
@@ -229,12 +228,19 @@ while :; do
229228
__UbuntuRepo="http://archive.ubuntu.com/ubuntu/"
230229
;;
231230
lldb*)
232-
version="${lowerI/lldb/}"
233-
parts=(${version//./ })
231+
version="$(echo "$lowerI" | tr -d '[:alpha:]-=')"
232+
majorVersion="${version%%.*}"
233+
234+
[ -z "${version##*.*}" ] && minorVersion="${version#*.}"
235+
if [ -z "$minorVersion" ]; then
236+
minorVersion=0
237+
fi
234238

235239
# for versions > 6.0, lldb has dropped the minor version
236-
if [[ "${parts[0]}" -gt 6 ]]; then
237-
version="${parts[0]}"
240+
if [ "$majorVersion" -le 6 ]; then
241+
version="$majorVersion.$minorVersion"
242+
else
243+
version="$majorVersion"
238244
fi
239245

240246
__LLDB_Package="liblldb-${version}-dev"
@@ -243,15 +249,19 @@ while :; do
243249
unset __LLDB_Package
244250
;;
245251
llvm*)
246-
version="${lowerI/llvm/}"
247-
parts=(${version//./ })
248-
__LLVM_MajorVersion="${parts[0]}"
249-
__LLVM_MinorVersion="${parts[1]}"
250-
251-
# for versions > 6.0, llvm has dropped the minor version
252-
if [[ -z "$__LLVM_MinorVersion" && "$__LLVM_MajorVersion" -le 6 ]]; then
253-
__LLVM_MinorVersion=0;
252+
version="$(echo "$lowerI" | tr -d '[:alpha:]-=')"
253+
__LLVM_MajorVersion="${version%%.*}"
254+
255+
[ -z "${version##*.*}" ] && __LLVM_MinorVersion="${version#*.}"
256+
if [ -z "$__LLVM_MinorVersion" ]; then
257+
__LLVM_MinorVersion=0
254258
fi
259+
260+
# for versions > 6.0, lldb has dropped the minor version
261+
if [ "$__LLVM_MajorVersion" -gt 6 ]; then
262+
__LLVM_MinorVersion=
263+
fi
264+
255265
;;
256266
xenial) # Ubuntu 16.04
257267
if [[ "$__CodeName" != "jessie" ]]; then
@@ -323,15 +333,14 @@ while :; do
323333
alpine*)
324334
__CodeName=alpine
325335
__UbuntuRepo=
326-
version="${lowerI/alpine/}"
327336

328-
if [[ "$version" == "edge" ]]; then
337+
if [[ "$lowerI" == "alpineedge" ]]; then
329338
__AlpineVersion=edge
330339
else
331-
parts=(${version//./ })
332-
__AlpineMajorVersion="${parts[0]}"
333-
__AlpineMinoVersion="${parts[1]}"
334-
__AlpineVersion="$__AlpineMajorVersion.$__AlpineMinoVersion"
340+
version="$(echo "$lowerI" | tr -d '[:alpha:]-=')"
341+
__AlpineMajorVersion="${version%%.*}"
342+
__AlpineMinorVersion="${version#*.}"
343+
__AlpineVersion="$__AlpineMajorVersion.$__AlpineMinorVersion"
335344
fi
336345
;;
337346
freebsd13)
@@ -444,11 +453,18 @@ __RootfsDir="$( cd "$__RootfsDir" && pwd )"
444453

445454
if [[ "$__CodeName" == "alpine" ]]; then
446455
__ApkToolsVersion=2.12.11
447-
__ApkToolsSHA512SUM=53e57b49230da07ef44ee0765b9592580308c407a8d4da7125550957bb72cb59638e04f8892a18b584451c8d841d1c7cb0f0ab680cc323a3015776affaa3be33
448456
__ApkToolsDir="$(mktemp -d)"
449457
__ApkKeysDir="$(mktemp -d)"
450458

451-
wget "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic//v$__ApkToolsVersion/x86_64/apk.static" -P "$__ApkToolsDir"
459+
arch="$(uname -m)"
460+
wget "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v$__ApkToolsVersion/$arch/apk.static" -P "$__ApkToolsDir"
461+
if [[ "$arch" == "x86_64" ]]; then
462+
__ApkToolsSHA512SUM="53e57b49230da07ef44ee0765b9592580308c407a8d4da7125550957bb72cb59638e04f8892a18b584451c8d841d1c7cb0f0ab680cc323a3015776affaa3be33"
463+
elif [[ "$arch" == "aarch64" ]]; then
464+
__ApkToolsSHA512SUM="9e2b37ecb2b56c05dad23d379be84fd494c14bd730b620d0d576bda760588e1f2f59a7fcb2f2080577e0085f23a0ca8eadd993b4e61c2ab29549fdb71969afd0"
465+
else
466+
echo "WARNING: add missing hash for your host architecture. To find the value, use: 'find /tmp -name apk.static -exec sha512sum {} \;'"
467+
fi
452468
echo "$__ApkToolsSHA512SUM $__ApkToolsDir/apk.static" | sha512sum -c
453469
chmod +x "$__ApkToolsDir/apk.static"
454470

@@ -477,12 +493,14 @@ if [[ "$__CodeName" == "alpine" ]]; then
477493
fi
478494

479495
# initialize DB
496+
# shellcheck disable=SC2086
480497
"$__ApkToolsDir/apk.static" \
481498
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
482499
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
483500
-U $__ApkSignatureArg --root "$__RootfsDir" --arch "$__AlpineArch" --initdb add
484501

485502
if [[ "$__AlpineLlvmLibsLookup" == 1 ]]; then
503+
# shellcheck disable=SC2086
486504
__AlpinePackages+=" $("$__ApkToolsDir/apk.static" \
487505
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
488506
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
@@ -491,6 +509,7 @@ if [[ "$__CodeName" == "alpine" ]]; then
491509
fi
492510

493511
# install all packages in one go
512+
# shellcheck disable=SC2086
494513
"$__ApkToolsDir/apk.static" \
495514
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
496515
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
@@ -514,6 +533,7 @@ elif [[ "$__CodeName" == "freebsd" ]]; then
514533
rm -rf "$__RootfsDir/tmp/pkg-${__FreeBSDPkg}"
515534
# install packages we need.
516535
INSTALL_AS_USER=$(whoami) "$__RootfsDir"/host/sbin/pkg -r "$__RootfsDir" -C "$__RootfsDir"/usr/local/etc/pkg.conf update
536+
# shellcheck disable=SC2086
517537
INSTALL_AS_USER=$(whoami) "$__RootfsDir"/host/sbin/pkg -r "$__RootfsDir" -C "$__RootfsDir"/usr/local/etc/pkg.conf install --yes $__FreeBSDPackages
518538
elif [[ "$__CodeName" == "illumos" ]]; then
519539
mkdir "$__RootfsDir/tmp"
@@ -575,8 +595,8 @@ elif [[ "$__CodeName" == "haiku" ]]; then
575595
mkdir "$__RootfsDir/tmp/download"
576596

577597
echo "Downloading Haiku package tool"
578-
git clone https://github.com/haiku/haiku-toolchains-ubuntu --depth 1 $__RootfsDir/tmp/script
579-
wget -O "$__RootfsDir/tmp/download/hosttools.zip" $($__RootfsDir/tmp/script/fetch.sh --hosttools)
598+
git clone https://github.com/haiku/haiku-toolchains-ubuntu --depth 1 "$__RootfsDir/tmp/script"
599+
wget -O "$__RootfsDir/tmp/download/hosttools.zip" "$("$__RootfsDir/tmp/script/fetch.sh" --hosttools)"
580600
unzip -o "$__RootfsDir/tmp/download/hosttools.zip" -d "$__RootfsDir/tmp/bin"
581601

582602
DepotBaseUrl="https://depot.haiku-os.org/__api/v2/pkg/get-pkg"
@@ -609,7 +629,7 @@ elif [[ "$__CodeName" == "haiku" ]]; then
609629

610630
# Download buildtools
611631
echo "Downloading Haiku buildtools"
612-
wget -O "$__RootfsDir/tmp/download/buildtools.zip" $($__RootfsDir/tmp/script/fetch.sh --buildtools --arch=$__HaikuArch)
632+
wget -O "$__RootfsDir/tmp/download/buildtools.zip" "$("$__RootfsDir/tmp/script/fetch.sh" --buildtools --arch=$__HaikuArch)"
613633
unzip -o "$__RootfsDir/tmp/download/buildtools.zip" -d "$__RootfsDir"
614634

615635
# Cleaning up temporary files
@@ -622,10 +642,12 @@ elif [[ -n "$__CodeName" ]]; then
622642
__Keyring="$__Keyring --force-check-gpg"
623643
fi
624644

645+
# shellcheck disable=SC2086
625646
debootstrap "--variant=minbase" $__Keyring --arch "$__UbuntuArch" "$__CodeName" "$__RootfsDir" "$__UbuntuRepo"
626647
cp "$__CrossDir/$__BuildArch/sources.list.$__CodeName" "$__RootfsDir/etc/apt/sources.list"
627648
chroot "$__RootfsDir" apt-get update
628649
chroot "$__RootfsDir" apt-get -f -y install
650+
# shellcheck disable=SC2086
629651
chroot "$__RootfsDir" apt-get -y install $__UbuntuPackages
630652
chroot "$__RootfsDir" symlinks -cr /usr
631653
chroot "$__RootfsDir" apt-get clean
@@ -643,6 +665,5 @@ elif [[ "$__Tizen" == "tizen" ]]; then
643665
ROOTFS_DIR="$__RootfsDir" "$__CrossDir/tizen-build-rootfs.sh" "$__BuildArch"
644666
else
645667
echo "Unsupported target platform."
646-
usage;
647-
exit 1
668+
usage
648669
fi

eng/common/cross/toolchain.cmake

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,26 @@ if(TARGET_ARCH_NAME MATCHES "^(arm|armel|x86)$")
382382
endif()
383383
endif()
384384

385+
# Set C++ standard library options if specified
386+
set(CLR_CMAKE_CXX_STANDARD_LIBRARY "" CACHE STRING "Standard library flavor to link against. Only supported with the Clang compiler.")
387+
if (CLR_CMAKE_CXX_STANDARD_LIBRARY)
388+
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang>:--stdlib=${CLR_CMAKE_CXX_STANDARD_LIBRARY}>)
389+
add_link_options($<$<LINK_LANG_AND_ID:CXX,Clang>:--stdlib=${CLR_CMAKE_CXX_STANDARD_LIBRARY}>)
390+
endif()
391+
392+
option(CLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC "Statically link against the C++ standard library" OFF)
393+
if(CLR_CMAKE_CXX_STANDARD_LIBRARY_STATIC)
394+
add_link_options($<$<LINK_LANGUAGE:CXX>:-static-libstdc++>)
395+
endif()
396+
397+
set(CLR_CMAKE_CXX_ABI_LIBRARY "" CACHE STRING "C++ ABI implementation library to link against. Only supported with the Clang compiler.")
398+
if (CLR_CMAKE_CXX_ABI_LIBRARY)
399+
# The user may specify the ABI library with the 'lib' prefix, like 'libstdc++'. Strip the prefix here so the linker finds the right library.
400+
string(REGEX REPLACE "^lib(.+)" "\\1" CLR_CMAKE_CXX_ABI_LIBRARY ${CLR_CMAKE_CXX_ABI_LIBRARY})
401+
# We need to specify this as a linker-backend option as Clang will filter this option out when linking to libc++.
402+
add_link_options("LINKER:-l${CLR_CMAKE_CXX_ABI_LIBRARY}")
403+
endif()
404+
385405
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
386406
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
387407
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

eng/common/templates-official/job/job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
- task: 1ES.PublishPipelineArtifact@1
211211
inputs:
212212
targetPath: 'artifacts/log'
213-
artifactName: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
213+
artifactName: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)_Attempt$(System.JobAttempt)') }}
214214
displayName: 'Publish logs'
215215
continueOnError: true
216216
condition: always()

eng/common/templates-official/job/source-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
pool:
4949
${{ if eq(variables['System.TeamProject'], 'public') }}:
5050
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore-Svc-Public' ), False, 'NetCore-Public')]
51-
demands: ImageOverride -equals build.ubuntu.1804.amd64
51+
demands: ImageOverride -equals build.ubuntu.2004.amd64
5252

5353
${{ if eq(variables['System.TeamProject'], 'internal') }}:
5454
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore1ESPool-Svc-Internal'), False, 'NetCore1ESPool-Internal')]

eng/common/templates-official/jobs/source-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
# This is the default platform provided by Arcade, intended for use by a managed-only repo.
1515
defaultManagedPlatform:
1616
name: 'Managed'
17-
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
17+
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9'
1818

1919
# Defines the platforms on which to run build jobs. One job is created for each platform, and the
2020
# object in this array is sent to the job template as 'platform'. If no platforms are specified,

eng/common/templates/job/source-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
pool:
4949
${{ if eq(variables['System.TeamProject'], 'public') }}:
5050
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore-Svc-Public' ), False, 'NetCore-Public')]
51-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
51+
demands: ImageOverride -equals Build.Ubuntu.2204.Amd64.Open
5252

5353
${{ if eq(variables['System.TeamProject'], 'internal') }}:
5454
name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore1ESPool-Svc-Internal'), False, 'NetCore1ESPool-Internal')]
55-
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
55+
demands: ImageOverride -equals Build.Ubuntu.2204.Amd64
5656

5757
${{ if ne(parameters.platform.pool, '') }}:
5858
pool: ${{ parameters.platform.pool }}

0 commit comments

Comments
 (0)