Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
1fcadde
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 14, 2022
74e5716
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 16, 2022
225955f
Update dependencies from https://github.com/dotnet/sdk build 20221218.1
dotnet-maestro[bot] Dec 19, 2022
8301dd2
Update dependencies from https://github.com/dotnet/sdk build 20221219.1
dotnet-maestro[bot] Dec 19, 2022
689e456
Update dependencies from https://github.com/dotnet/sdk build 20221219.3
dotnet-maestro[bot] Dec 19, 2022
42da63e
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 19, 2022
a9109fa
Update dependencies from https://github.com/dotnet/sdk build 20221219.5
dotnet-maestro[bot] Dec 19, 2022
3f11bfd
Update dependencies from https://github.com/dotnet/sdk build 20221219.6
dotnet-maestro[bot] Dec 20, 2022
c7b36a4
Update dependencies from https://github.com/dotnet/sdk build 20221219.8
dotnet-maestro[bot] Dec 20, 2022
7ab8ce9
Update dependencies from https://github.com/dotnet/sdk build 20221220.1
dotnet-maestro[bot] Dec 20, 2022
afdcdf7
Update dependencies from https://github.com/dotnet/sdk build 20221220.2
dotnet-maestro[bot] Dec 20, 2022
91141be
Update dependencies from https://github.com/dotnet/sdk build 20221220.4
dotnet-maestro[bot] Dec 20, 2022
3531253
Update dependencies from https://github.com/dotnet/sdk build 20221220.5
dotnet-maestro[bot] Dec 21, 2022
5e148ec
Update dependencies from https://github.com/dotnet/sdk build 20221220.7
dotnet-maestro[bot] Dec 21, 2022
f4ef602
Update dependencies from https://github.com/dotnet/sdk build 20221221.1
dotnet-maestro[bot] Dec 21, 2022
cc9549f
Update dependencies from https://github.com/dotnet/sdk build 20221221.2
dotnet-maestro[bot] Dec 21, 2022
d145177
Update dependencies from https://github.com/dotnet/sdk build 20221221.4
dotnet-maestro[bot] Dec 21, 2022
6c00c4c
Update dependencies from https://github.com/dotnet/sdk build 20221221.5
dotnet-maestro[bot] Dec 21, 2022
e1050f7
Update ProjectBuildTests.cs
ViktorHofer Dec 21, 2022
f4d211b
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 21, 2022
9029f63
Update dependencies from https://github.com/dotnet/sdk build 20221221.8
dotnet-maestro[bot] Dec 22, 2022
bb6f6e3
Update dependencies from https://github.com/dotnet/sdk build 20221221.10
dotnet-maestro[bot] Dec 22, 2022
0933b4f
Update dependencies from https://github.com/dotnet/sdk build 20221221.11
dotnet-maestro[bot] Dec 22, 2022
866fc1a
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 22, 2022
f7ab5bc
Don't crossgen ILLink which is no longer bundled
sbomer Dec 22, 2022
2dfc371
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 24, 2022
be04f50
Update dependencies from https://github.com/dotnet/sdk build 20221225.1
dotnet-maestro[bot] Dec 26, 2022
906f8d4
Update dependencies from https://github.com/dotnet/sdk build 20221226.1
dotnet-maestro[bot] Dec 26, 2022
5ceb586
Update dependencies from https://github.com/dotnet/sdk build 20221226.3
dotnet-maestro[bot] Dec 26, 2022
5adc824
Update dependencies from https://github.com/dotnet/sdk build 20221226.4
dotnet-maestro[bot] Dec 26, 2022
9db278f
Update dependencies from https://github.com/dotnet/sdk build 20221226.5
dotnet-maestro[bot] Dec 26, 2022
8919cd2
Update dependencies from https://github.com/dotnet/sdk build 20221226.7
dotnet-maestro[bot] Dec 27, 2022
3c207fa
Update dependencies from https://github.com/dotnet/sdk build 20221226.8
dotnet-maestro[bot] Dec 27, 2022
50b04ed
Update dependencies from https://github.com/dotnet/sdk build 20221227.1
dotnet-maestro[bot] Dec 27, 2022
5a4b511
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 27, 2022
68c5bd5
Update dependencies from https://github.com/dotnet/sdk build 20221227.3
dotnet-maestro[bot] Dec 28, 2022
957dc3a
Update dependencies from https://github.com/dotnet/sdk build 20221227.4
dotnet-maestro[bot] Dec 28, 2022
33c7118
Update dependencies from https://github.com/dotnet/sdk build 20221228.2
dotnet-maestro[bot] Dec 28, 2022
a80a91a
Update dependencies from https://github.com/dotnet/sdk build 20221228.3
dotnet-maestro[bot] Dec 29, 2022
0d8cf77
Update dependencies from https://github.com/dotnet/sdk build 20221228.4
dotnet-maestro[bot] Dec 29, 2022
164bcaa
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 29, 2022
804fdee
Update dependencies from https://github.com/dotnet/sdk build 20221229.1
dotnet-maestro[bot] Dec 30, 2022
9430a90
Update dependencies from https://github.com/dotnet/sdk build 20221230.1
dotnet-maestro[bot] Dec 31, 2022
68029ea
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 31, 2022
d91fefa
Update dependencies from https://github.com/dotnet/sdk build 20230102.1
dotnet-maestro[bot] Jan 2, 2023
0833f0f
Update dependencies from https://github.com/dotnet/sdk build 20230102.2
dotnet-maestro[bot] Jan 2, 2023
e051101
Update dependencies from https://github.com/dotnet/sdk build 20230102.3
dotnet-maestro[bot] Jan 2, 2023
68b3294
Update dependencies from https://github.com/dotnet/sdk build 20230102.4
dotnet-maestro[bot] Jan 3, 2023
f7071d5
Update dependencies from https://github.com/dotnet/sdk build 20230103.2
dotnet-maestro[bot] Jan 3, 2023
dede9a5
Update dependencies from https://github.com/dotnet/arcade build 20230…
dotnet-maestro[bot] Jan 3, 2023
dbb1aef
Update dependencies from https://github.com/dotnet/sdk build 20230103.3
dotnet-maestro[bot] Jan 3, 2023
407ad04
Update dependencies from https://github.com/dotnet/sdk build 20230103.4
dotnet-maestro[bot] Jan 3, 2023
cc4f34f
Update dependencies from https://github.com/dotnet/sdk build 20230103.5
dotnet-maestro[bot] Jan 3, 2023
fb137ee
Update dependencies from https://github.com/dotnet/sdk build 20230103.6
dotnet-maestro[bot] Jan 3, 2023
001d491
Update dependencies from https://github.com/dotnet/sdk build 20230103.7
dotnet-maestro[bot] Jan 3, 2023
dad0020
Update dependencies from https://github.com/dotnet/sdk build 20230103.8
dotnet-maestro[bot] Jan 3, 2023
521b21d
Merge branch 'main' of https://github.com/dotnet/installer into darc-…
MichaelSimons Jan 3, 2023
836dc72
Merge remote-tracking branch 'upstream/darc-main-e0248016-a57a-4ad2-a…
MichaelSimons Jan 3, 2023
8da08b4
Add SuppressTfmSupportBuildWarnings=true in source-build
MichaelSimons Jan 4, 2023
35fa1da
Merge branch 'darc-main-66d586e3-f52b-4957-867f-75cf448ba8b8' of http…
MichaelSimons Jan 4, 2023
3e5fbbd
Update dependencies from https://github.com/dotnet/sdk build 20230103.18
dotnet-maestro[bot] Jan 4, 2023
8f0f081
Update dependencies from https://github.com/dotnet/sdk build 20230104.1
dotnet-maestro[bot] Jan 4, 2023
682b49c
Update dependencies from https://github.com/dotnet/sdk build 20230104.3
dotnet-maestro[bot] Jan 4, 2023
2f7d895
Update dependencies from https://github.com/dotnet/sdk build 20230104.14
dotnet-maestro[bot] Jan 4, 2023
54a123f
Update dependencies from https://github.com/dotnet/sdk build 20230104.19
dotnet-maestro[bot] Jan 4, 2023
abcf360
Update dependencies from https://github.com/dotnet/sdk build 20230104.20
dotnet-maestro[bot] Jan 4, 2023
db57aa0
Update GenerateLayout logic to use DotNetBuildFromSourceFlavor vs Dot…
MichaelSimons Jan 4, 2023
1c5dcb5
Update dependencies from https://github.com/dotnet/sdk build 20230104.22
dotnet-maestro[bot] Jan 4, 2023
6fe4018
Add CA nowarn workaround
MichaelSimons Jan 4, 2023
91fc246
--amend
MichaelSimons Jan 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 70 additions & 70 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/arcade -->
<MicrosoftDotNetBuildTasksInstallersPackageVersion>8.0.0-beta.22612.4</MicrosoftDotNetBuildTasksInstallersPackageVersion>
<MicrosoftDotNetBuildTasksInstallersPackageVersion>8.0.0-beta.23052.2</MicrosoftDotNetBuildTasksInstallersPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/arcade-services -->
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23053.1</MicrosoftDotNetDarcLibVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/winforms -->
<MicrosoftDotnetWinFormsProjectTemplatesPackageVersion>8.0.0-alpha.1.22602.3</MicrosoftDotnetWinFormsProjectTemplatesPackageVersion>
<MicrosoftDotnetWinFormsProjectTemplatesPackageVersion>8.0.0-alpha.1.22628.4</MicrosoftDotnetWinFormsProjectTemplatesPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/wpf -->
<MicrosoftDotNetWpfProjectTemplatesPackageVersion>8.0.0-alpha.1.22603.1</MicrosoftDotNetWpfProjectTemplatesPackageVersion>
<MicrosoftDotNetWpfProjectTemplatesPackageVersion>8.0.0-alpha.1.22631.1</MicrosoftDotNetWpfProjectTemplatesPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/test-templates -->
Expand All @@ -58,46 +58,46 @@
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/aspnet/AspNetCore -->
<MicrosoftAspNetCoreAppRuntimewinx64PackageVersion>8.0.0-alpha.1.22615.1</MicrosoftAspNetCoreAppRuntimewinx64PackageVersion>
<MicrosoftAspNetCoreAppRefPackageVersion>8.0.0-alpha.1.22615.1</MicrosoftAspNetCoreAppRefPackageVersion>
<MicrosoftAspNetCoreAppRefInternalPackageVersion>8.0.0-alpha.1.22615.1</MicrosoftAspNetCoreAppRefInternalPackageVersion>
<VSRedistCommonAspNetCoreSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.22615.1</VSRedistCommonAspNetCoreSharedFrameworkx6480PackageVersion>
<dotnetdevcertsPackageVersion>8.0.0-alpha.1.22615.1</dotnetdevcertsPackageVersion>
<dotnetuserjwtsPackageVersion>8.0.0-alpha.1.22615.1</dotnetuserjwtsPackageVersion>
<dotnetusersecretsPackageVersion>8.0.0-alpha.1.22615.1</dotnetusersecretsPackageVersion>
<MicrosoftAspNetCoreAppRuntimewinx64PackageVersion>8.0.0-alpha.1.23053.19</MicrosoftAspNetCoreAppRuntimewinx64PackageVersion>
<MicrosoftAspNetCoreAppRefPackageVersion>8.0.0-alpha.1.23053.19</MicrosoftAspNetCoreAppRefPackageVersion>
<MicrosoftAspNetCoreAppRefInternalPackageVersion>8.0.0-alpha.1.23053.19</MicrosoftAspNetCoreAppRefInternalPackageVersion>
<VSRedistCommonAspNetCoreSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.23053.19</VSRedistCommonAspNetCoreSharedFrameworkx6480PackageVersion>
<dotnetdevcertsPackageVersion>8.0.0-alpha.1.23053.19</dotnetdevcertsPackageVersion>
<dotnetuserjwtsPackageVersion>8.0.0-alpha.1.23053.19</dotnetuserjwtsPackageVersion>
<dotnetusersecretsPackageVersion>8.0.0-alpha.1.23053.19</dotnetusersecretsPackageVersion>
</PropertyGroup>
<PropertyGroup>
<MicroBuildCorePackageVersion>0.2.0</MicroBuildCorePackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/sdk -->
<MicrosoftDotNetCommonItemTemplatesPackageVersion>8.0.100-alpha.1.22615.13</MicrosoftDotNetCommonItemTemplatesPackageVersion>
<MicrosoftNETSdkPackageVersion>8.0.100-alpha.1.22615.13</MicrosoftNETSdkPackageVersion>
<MicrosoftDotNetMSBuildSdkResolverPackageVersion>8.0.100-alpha.1.22615.13</MicrosoftDotNetMSBuildSdkResolverPackageVersion>
<MicrosoftDotNetCommonItemTemplatesPackageVersion>8.0.100-alpha.1.23054.22</MicrosoftDotNetCommonItemTemplatesPackageVersion>
<MicrosoftNETSdkPackageVersion>8.0.100-alpha.1.23054.22</MicrosoftNETSdkPackageVersion>
<MicrosoftDotNetMSBuildSdkResolverPackageVersion>8.0.100-alpha.1.23054.22</MicrosoftDotNetMSBuildSdkResolverPackageVersion>
<MicrosoftNETBuildExtensionsPackageVersion>$(MicrosoftNETSdkPackageVersion)</MicrosoftNETBuildExtensionsPackageVersion>
<MicrosoftDotnetToolsetInternalPackageVersion>$(MicrosoftNETSdkPackageVersion)</MicrosoftDotnetToolsetInternalPackageVersion>
<MicrosoftDotnetTemplateLocatorPackageVersion>$(MicrosoftNETSdkPackageVersion)</MicrosoftDotnetTemplateLocatorPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/corefx -->
<MicrosoftNETCorePlatformsPackageVersion>8.0.0-alpha.1.22605.1</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>8.0.0-alpha.1.23053.7</MicrosoftNETCorePlatformsPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/core-setup -->
<VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.22605.1</VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>
<VSRedistCommonNetCoreTargetingPackx6480PackageVersion>8.0.0-alpha.1.22605.1</VSRedistCommonNetCoreTargetingPackx6480PackageVersion>
<MicrosoftNETCoreAppRuntimewinx64PackageVersion>8.0.0-alpha.1.22605.1</MicrosoftNETCoreAppRuntimewinx64PackageVersion>
<MicrosoftNETCoreAppHostwinx64PackageVersion>8.0.0-alpha.1.22605.1</MicrosoftNETCoreAppHostwinx64PackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>8.0.0-alpha.1.22605.1</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreDotNetHostResolverPackageVersion>8.0.0-alpha.1.22605.1</MicrosoftNETCoreDotNetHostResolverPackageVersion>
<VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.23053.7</VSRedistCommonNetCoreSharedFrameworkx6480PackageVersion>
<VSRedistCommonNetCoreTargetingPackx6480PackageVersion>8.0.0-alpha.1.23053.7</VSRedistCommonNetCoreTargetingPackx6480PackageVersion>
<MicrosoftNETCoreAppRuntimewinx64PackageVersion>8.0.0-alpha.1.23053.7</MicrosoftNETCoreAppRuntimewinx64PackageVersion>
<MicrosoftNETCoreAppHostwinx64PackageVersion>8.0.0-alpha.1.23053.7</MicrosoftNETCoreAppHostwinx64PackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>8.0.0-alpha.1.23053.7</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreDotNetHostResolverPackageVersion>8.0.0-alpha.1.23053.7</MicrosoftNETCoreDotNetHostResolverPackageVersion>
<NETStandardLibraryRefPackageVersion>2.1.0</NETStandardLibraryRefPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/windowsdesktop -->
<VSRedistCommonWindowsDesktopSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.22614.1</VSRedistCommonWindowsDesktopSharedFrameworkx6480PackageVersion>
<VSRedistCommonWindowsDesktopTargetingPackx6480PackageVersion>8.0.0-alpha.1.22614.1</VSRedistCommonWindowsDesktopTargetingPackx6480PackageVersion>
<MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion>8.0.0-alpha.1.22614.1</MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion>
<MicrosoftWindowsDesktopAppRefPackageVersion>8.0.0-alpha.1.22614.1</MicrosoftWindowsDesktopAppRefPackageVersion>
<VSRedistCommonWindowsDesktopSharedFrameworkx6480PackageVersion>8.0.0-alpha.1.23053.1</VSRedistCommonWindowsDesktopSharedFrameworkx6480PackageVersion>
<VSRedistCommonWindowsDesktopTargetingPackx6480PackageVersion>8.0.0-alpha.1.23053.1</VSRedistCommonWindowsDesktopTargetingPackx6480PackageVersion>
<MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion>8.0.0-alpha.1.23053.1</MicrosoftWindowsDesktopAppRuntimewinx64PackageVersion>
<MicrosoftWindowsDesktopAppRefPackageVersion>8.0.0-alpha.1.23053.1</MicrosoftWindowsDesktopAppRefPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Runtime and Apphost pack versions are the same for all RIDs. We flow the x64 -->
Expand Down Expand Up @@ -187,7 +187,7 @@
<PropertyGroup>
<VersionToolsVersion>2.2.0-beta.19072.10</VersionToolsVersion>
<DotnetDebToolVersion>2.0.0</DotnetDebToolVersion>
<MicrosoftNETTestSdkVersion>17.5.0-preview-20221214-01</MicrosoftNETTestSdkVersion>
<MicrosoftNETTestSdkVersion>17.6.0-preview-20230103-01</MicrosoftNETTestSdkVersion>
<MicrosoftExtensionsLoggingConsoleVersion>8.0.0-alpha.1.22557.12</MicrosoftExtensionsLoggingConsoleVersion>
</PropertyGroup>
<!-- Workload manifest package versions -->
Expand Down
4 changes: 4 additions & 0 deletions eng/common/BuildConfiguration/build-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"RetryCountLimit": 1,
"RetryByAnyError": false
}
81 changes: 37 additions & 44 deletions eng/common/native/init-compiler.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
#!/usr/bin/env bash
#!/bin/sh
#
# This file detects the C/C++ compiler and exports it to the CC/CXX environment variables
#
# NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here!

if [[ "$#" -lt 3 ]]; then
if [ -z "$build_arch" ] || [ -z "$compiler" ]; then
echo "Usage..."
echo "init-compiler.sh <script directory> <Architecture> <compiler>"
echo "Specify the script directory."
echo "build_arch=<ARCH> compiler=<NAME> init-compiler.sh"
echo "Specify the target architecture."
echo "Specify the name of compiler (clang or gcc)."
exit 1
fi

nativescriptroot="$1"
build_arch="$2"
compiler="$3"

case "$compiler" in
clang*|-clang*|--clang*)
# clangx.y or clang-x.y
version="$(echo "$compiler" | tr -d '[:alpha:]-=')"
parts=(${version//./ })
majorVersion="${parts[0]}"
minorVersion="${parts[1]}"
if [[ -z "$minorVersion" && "$majorVersion" -le 6 ]]; then
majorVersion="${version%%.*}"
[ -z "${version##*.*}" ] && minorVersion="${version#*.}"

if [ -z "$minorVersion" ] && [ -n "$majorVersion" ] && [ "$majorVersion" -le 6 ]; then
minorVersion=0;
fi
compiler=clang
Expand All @@ -33,23 +28,20 @@ case "$compiler" in
gcc*|-gcc*|--gcc*)
# gccx.y or gcc-x.y
version="$(echo "$compiler" | tr -d '[:alpha:]-=')"
parts=(${version//./ })
majorVersion="${parts[0]}"
minorVersion="${parts[1]}"
majorVersion="${version%%.*}"
[ -z "${version##*.*}" ] && minorVersion="${version#*.}"
compiler=gcc
;;
esac

cxxCompiler="$compiler++"

. "$nativescriptroot"/../pipeline-logging-functions.sh

# clear the existing CC and CXX from environment
CC=
CXX=
LDFLAGS=

if [[ "$compiler" == "gcc" ]]; then cxxCompiler="g++"; fi
if [ "$compiler" = "gcc" ]; then cxxCompiler="g++"; fi

check_version_exists() {
desired_version=-1
Expand All @@ -66,74 +58,75 @@ check_version_exists() {
echo "$desired_version"
}

if [[ -z "$CLR_CC" ]]; then
if [ -z "$CLR_CC" ]; then

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

for version in "${versions[@]}"; do
parts=(${version//./ })
desired_version="$(check_version_exists "${parts[0]}" "${parts[1]}")"
if [[ "$desired_version" != "-1" ]]; then majorVersion="${parts[0]}"; break; fi
if [ "$compiler" = "clang" ]; then versions="15 14 13 12 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5"
elif [ "$compiler" = "gcc" ]; then versions="12 11 10 9 8 7 6 5 4.9"; fi

for version in $versions; do
_major="${version%%.*}"
[ -z "${version##*.*}" ] && _minor="${version#*.}"
desired_version="$(check_version_exists "$_major" "$_minor")"
if [ "$desired_version" != "-1" ]; then majorVersion="$_major"; break; fi
done

if [[ -z "$majorVersion" ]]; then
if [ -z "$majorVersion" ]; then
if command -v "$compiler" > /dev/null; then
if [[ "$(uname)" != "Darwin" ]]; then
Write-PipelineTelemetryError -category "Build" -type "warning" "Specific version of $compiler not found, falling back to use the one in PATH."
if [ "$(uname)" != "Darwin" ]; then
echo "Warning: Specific version of $compiler not found, falling back to use the one in PATH."
fi
CC="$(command -v "$compiler")"
CXX="$(command -v "$cxxCompiler")"
else
Write-PipelineTelemetryError -category "Build" "No usable version of $compiler found."
echo "No usable version of $compiler found."
exit 1
fi
else
if [[ "$compiler" == "clang" && "$majorVersion" -lt 5 ]]; then
if [[ "$build_arch" == "arm" || "$build_arch" == "armel" ]]; then
if [ "$compiler" = "clang" ] && [ "$majorVersion" -lt 5 ]; then
if [ "$build_arch" = "arm" ] || [ "$build_arch" = "armel" ]; then
if command -v "$compiler" > /dev/null; then
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."
echo "Warning: Found clang version $majorVersion which is not supported on arm/armel architectures, falling back to use clang from PATH."
CC="$(command -v "$compiler")"
CXX="$(command -v "$cxxCompiler")"
else
Write-PipelineTelemetryError -category "Build" "Found clang version $majorVersion which is not supported on arm/armel architectures, and there is no clang in PATH."
echo "Found clang version $majorVersion which is not supported on arm/armel architectures, and there is no clang in PATH."
exit 1
fi
fi
fi
fi
else
desired_version="$(check_version_exists "$majorVersion" "$minorVersion")"
if [[ "$desired_version" == "-1" ]]; then
Write-PipelineTelemetryError -category "Build" "Could not find specific version of $compiler: $majorVersion $minorVersion."
if [ "$desired_version" = "-1" ]; then
echo "Could not find specific version of $compiler: $majorVersion $minorVersion."
exit 1
fi
fi

if [[ -z "$CC" ]]; then
if [ -z "$CC" ]; then
CC="$(command -v "$compiler$desired_version")"
CXX="$(command -v "$cxxCompiler$desired_version")"
if [[ -z "$CXX" ]]; then CXX="$(command -v "$cxxCompiler")"; fi
if [ -z "$CXX" ]; then CXX="$(command -v "$cxxCompiler")"; fi
fi
else
if [[ ! -f "$CLR_CC" ]]; then
Write-PipelineTelemetryError -category "Build" "CLR_CC is set but path '$CLR_CC' does not exist"
if [ ! -f "$CLR_CC" ]; then
echo "CLR_CC is set but path '$CLR_CC' does not exist"
exit 1
fi
CC="$CLR_CC"
CXX="$CLR_CXX"
fi

if [[ -z "$CC" ]]; then
Write-PipelineTelemetryError -category "Build" "Unable to find $compiler."
if [ -z "$CC" ]; then
echo "Unable to find $compiler."
exit 1
fi

# Only lld version >= 9 can be considered stable. lld doesn't support s390x.
if [[ "$compiler" == "clang" && "$majorVersion" -ge 9 && "$build_arch" != "s390x" ]]; then
if [ "$compiler" = "clang" ] && [ -n "$majorVersion" ] && [ "$majorVersion" -ge 9 ] && [ "$build_arch" != "s390x" ]; then
if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
LDFLAGS="-fuse-ld=lld"
fi
Expand Down
6 changes: 6 additions & 0 deletions eng/common/templates/job/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ parameters:
enablePublishBuildAssets: false
enablePublishTestResults: false
enablePublishUsingPipelines: false
enableBuildRetry: false
disableComponentGovernance: false
componentGovernanceIgnoreDirectories: ''
mergeTestResults: false
Expand Down Expand Up @@ -228,3 +229,8 @@ jobs:
BuildDropPath: ${{ parameters.buildDropPath }}
IgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}

- ${{ if eq(parameters.enableBuildRetry, 'true') }}:
- publish: $(Build.SourcesDirectory)\eng\common\BuildConfiguration
artifact: BuildConfiguration
displayName: Publish build retry configuration
continueOnError: true
14 changes: 8 additions & 6 deletions eng/common/templates/job/onelocbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ parameters:
ReusePr: true
UseLfLineEndings: true
UseCheckedInLocProjectJson: false
SkipLocProjectJsonGeneration: false
LanguageSet: VS_Main_Languages
LclSource: lclFilesInRepo
LclPackageId: ''
Expand Down Expand Up @@ -56,12 +57,13 @@ jobs:
demands: ImageOverride -equals windows.vs2019.amd64

steps:
- task: Powershell@2
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
arguments: $(_GenerateLocProjectArguments)
displayName: Generate LocProject.json
condition: ${{ parameters.condition }}
- ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}:
- task: Powershell@2
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
arguments: $(_GenerateLocProjectArguments)
displayName: Generate LocProject.json
condition: ${{ parameters.condition }}

- task: OneLocBuild@2
displayName: OneLocBuild
Expand Down
3 changes: 2 additions & 1 deletion eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@ function MSBuild-Core() {
Write-Host "See log: $buildLog" -ForegroundColor DarkGray
}

if ($ci) {
# When running on Azure Pipelines, override the returned exit code to avoid double logging.
if ($ci -and $env:SYSTEM_TEAMPROJECT -ne $null) {
Write-PipelineSetResult -Result "Failed" -Message "msbuild execution failed."
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error
Expand Down
4 changes: 3 additions & 1 deletion eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ function MSBuild-Core {
# We should not Write-PipelineTaskError here because that message shows up in the build summary
# The build already logged an error, that's the reason it failed. Producing an error here only adds noise.
echo "Build failed with exit code $exit_code. Check errors above."
if [[ "$ci" == "true" ]]; then

# When running on Azure Pipelines, override the returned exit code to avoid double logging.
if [[ "$ci" == "true" && -n ${SYSTEM_TEAMPROJECT:-} ]]; then
Write-PipelineSetResult -result "Failed" -message "msbuild execution failed."
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cmake": "3.21.0"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.22612.4",
"Microsoft.DotNet.CMake.Sdk": "8.0.0-beta.22612.4"
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23052.2",
"Microsoft.DotNet.CMake.Sdk": "8.0.0-beta.23052.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<EnvironmentVariables Include="DotNetPackageVersionPropsPath=$(PackageVersionPropsPath)" />
<EnvironmentVariables Include="DotNetRestorePackagesPath=$(PackagesDir)" />
<EnvironmentVariables Include="DotNetBuildOffline=true" />
<EnvironmentVariables Include="SuppressTfmSupportBuildWarnings=true" />

<!-- Ensure the SDK (Core-SDK/Installer) doesn't add an online source. -->
<EnvironmentVariables Include="AddDotnetfeedProjectSource=false" />
Expand Down
8 changes: 6 additions & 2 deletions src/SourceBuild/content/repo-projects/aspnetcore.proj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@
Microsoft.CodeAnalysis 4.3.0, but aspnetcore references version 4.2.0.
Requires https://github.com/dotnet/source-build/issues/2482
CA1825 - Avoid unnecessary zero-length array allocations.
Requires aspnet to upgrade roslyn version. -->
<RepoNoWarns>CS0618;CA1825</RepoNoWarns>
Requires aspnet to upgrade roslyn version.
CS8600 - Converting null literal or possible null value to non-nullable type.
Requires https://github.com/dotnet/aspnetcore/issues/45882.
CS8604 - Possible null reference argument for parameter.
Requires https://github.com/dotnet/aspnetcore/issues/45882. -->
<RepoNoWarns>CS0618;CA1825;CS8600;CS8604</RepoNoWarns>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading