Skip to content

Commit fedd0f8

Browse files
authored
Merge branch 'main' into fixwebcilex
2 parents 8507821 + 7a08e67 commit fedd0f8

File tree

499 files changed

+15917
-5921
lines changed

Some content is hidden

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

499 files changed

+15917
-5921
lines changed

.github/dependabot.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
registries:
3+
public-nuget:
4+
type: nuget-feed
5+
url: https://api.nuget.org/v3/index.json
6+
updates:
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 5
13+
labels:
14+
- area-codeflow

Directory.Build.props

+11-5
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,22 @@
5656
- eng/native/configurecompiler.cmake
5757
- eng/native/build-commons.sh
5858
- src/native/libs/build-native.sh
59-
- src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs
59+
- src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/MachObjectWriter.cs
6060
- src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
61+
- src/mono/mono/tools/offsets-tool/offsets-tool.py
62+
- src/mono/msbuild/apple/build/AppleBuild.targets
6163
- src/installer/pkg/sfx/bundle/shared-framework-distribution-template-x64.xml
6264
- src/installer/pkg/sfx/bundle/shared-framework-distribution-template-arm64.xml
65+
- src/tasks/AotCompilerTask/MonoAOTCompiler.props
66+
- src/tasks/AppleAppBuilder/Xcode.cs
6367
- src/tasks/MobileBuildTasks/Apple/AppleProject.cs
6468
- dotnet/installer repo > src/redist/targets/GeneratePKG.targets
6569
-->
6670
<AndroidApiLevelMin>21</AndroidApiLevelMin>
67-
<iOSVersionMin>11.0</iOSVersionMin>
68-
<tvOSVersionMin>11.0</tvOSVersionMin>
69-
<macOSVersionMin>10.15</macOSVersionMin>
70-
<macOSVersionMin Condition="('$(TargetOS)' == 'osx' or '$(TargetOS)' == 'maccatalyst') and '$(TargetArchitecture)' == 'arm64'">11.0</macOSVersionMin>
71+
<iOSVersionMin>12.2</iOSVersionMin>
72+
<tvOSVersionMin>12.2</tvOSVersionMin>
73+
<macOSVersionMin>12.0</macOSVersionMin>
74+
<MacCatalystVersionMin>15.0</MacCatalystVersionMin>
7175
</PropertyGroup>
7276

7377
<PropertyGroup>
@@ -180,7 +184,9 @@
180184
<TestExclusionListTasksAssemblyPath>$([MSBuild]::NormalizePath('$(TestExclusionListTasksDir)', 'TestExclusionListTasks.dll'))</TestExclusionListTasksAssemblyPath>
181185
<CoreCLRToolPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'coreclr', '$(TargetOS).$(TargetArchitecture).$(RuntimeConfiguration)'))</CoreCLRToolPath>
182186
<ILAsmToolPath Condition="'$(DotNetBuildSourceOnly)' == 'true' or '$(BuildArchitecture)' == 's390x' or '$(BuildArchitecture)' == 'ppc64le'">$(CoreCLRToolPath)</ILAsmToolPath>
187+
<!-- force download temmporarily https://github.com/dotnet/runtime/issues/101528
183188
<WasmtimeDir Condition="'$(WasmtimeDir)' == '' and '$(WASMTIME_PATH)' != '' and Exists($(WASMTIME_PATH))">$(WASMTIME_PATH)</WasmtimeDir>
189+
-->
184190
<WasmtimeDir Condition="'$(WasmtimeDir)' == ''">$([MSBuild]::NormalizeDirectory($(ArtifactsObjDir), 'wasmtime'))</WasmtimeDir>
185191
<InstallWasmtimeForTests Condition="'$(InstallWasmtimeForTests)' == '' and !Exists($(WasmtimeDir))">true</InstallWasmtimeForTests>
186192
<WasmCommonTargetsPath>$([MSBuild]::NormalizeDirectory($(WasmProjectRoot), 'build'))</WasmCommonTargetsPath>

docs/coding-guidelines/coding-style.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The general rule we follow is "use Visual Studio defaults".
3636

3737
An [EditorConfig](https://editorconfig.org "EditorConfig homepage") file (`.editorconfig`) has been provided at the root of the runtime repository, enabling C# auto-formatting conforming to the above guidelines.
3838

39-
We also use the [.NET Codeformatter Tool](https://github.com/dotnet/codeformatter) to ensure the code base maintains a consistent style over time, the tool automatically fixes the code base to conform to the guidelines outlined above.
39+
We also use the [dotnet-format Tool](https://github.com/dotnet/format) to ensure the code base maintains a consistent style over time, the tool automatically fixes the code base to conform to the guidelines outlined above.
4040

4141
### Example File:
4242

eng/Version.Details.xml

+20-20
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<Uri>https://github.com/dotnet/wcf</Uri>
1313
<Sha>7f504aabb1988e9a093c1e74d8040bd52feb2f01</Sha>
1414
</Dependency>
15-
<Dependency Name="Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64" Version="9.0.0-preview.4.24215.3">
15+
<Dependency Name="Microsoft.NET.Runtime.Emscripten.3.1.34.Python.win-x64" Version="9.0.0-preview.4.24222.2">
1616
<Uri>https://github.com/dotnet/emsdk</Uri>
17-
<Sha>19c9523f5c2dd091b49959700723af795d6ad2b4</Sha>
17+
<Sha>9d28301f6a5f512db14f242f7403a4bfbcbcc8a4</Sha>
1818
</Dependency>
1919
<Dependency Name="runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools" Version="16.0.5-alpha.1.24204.1" CoherentParentDependency="Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport">
2020
<Uri>https://github.com/dotnet/llvm-project</Uri>
@@ -68,14 +68,14 @@
6868
<Sha>861f49c137941b9722a43e5993ccac7716c8528c</Sha>
6969
<SourceBuild RepoName="cecil" ManagedOnly="true" />
7070
</Dependency>
71-
<Dependency Name="Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport" Version="9.0.0-preview.4.24215.3">
71+
<Dependency Name="Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100.Transport" Version="9.0.0-preview.4.24222.2">
7272
<Uri>https://github.com/dotnet/emsdk</Uri>
73-
<Sha>19c9523f5c2dd091b49959700723af795d6ad2b4</Sha>
73+
<Sha>9d28301f6a5f512db14f242f7403a4bfbcbcc8a4</Sha>
7474
</Dependency>
7575
<!-- Intermediate is necessary for source build. -->
76-
<Dependency Name="Microsoft.SourceBuild.Intermediate.emsdk" Version="9.0.0-preview.4.24215.3">
76+
<Dependency Name="Microsoft.SourceBuild.Intermediate.emsdk" Version="9.0.0-preview.4.24222.2">
7777
<Uri>https://github.com/dotnet/emsdk</Uri>
78-
<Sha>19c9523f5c2dd091b49959700723af795d6ad2b4</Sha>
78+
<Sha>9d28301f6a5f512db14f242f7403a4bfbcbcc8a4</Sha>
7979
<SourceBuild RepoName="emsdk" ManagedOnly="true" />
8080
</Dependency>
8181
<!-- Intermediate is necessary for source build. -->
@@ -85,9 +85,9 @@
8585
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
8686
</Dependency>
8787
<!-- Intermediate is necessary for source build. -->
88-
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-externals" Version="9.0.0-alpha.1.24216.3">
88+
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-externals" Version="9.0.0-alpha.1.24222.1">
8989
<Uri>https://github.com/dotnet/source-build-externals</Uri>
90-
<Sha>5a273649709de76f61957e3d69e1f031e5ac82e2</Sha>
90+
<Sha>1223ec47c74e79d44950d429a36386de6c7bf9c8</Sha>
9191
<SourceBuild RepoName="source-build-externals" ManagedOnly="true" />
9292
</Dependency>
9393
</ProductDependencies>
@@ -336,21 +336,21 @@
336336
<Uri>https://github.com/dotnet/arcade</Uri>
337337
<Sha>b4f4d40741f161e2c0d96c19c51a4013850ef65f</Sha>
338338
</Dependency>
339-
<Dependency Name="optimization.windows_nt-x64.MIBC.Runtime" Version="1.0.0-prerelease.24106.4">
339+
<Dependency Name="optimization.windows_nt-x64.MIBC.Runtime" Version="1.0.0-prerelease.24219.3">
340340
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
341-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
341+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
342342
</Dependency>
343-
<Dependency Name="optimization.windows_nt-x86.MIBC.Runtime" Version="1.0.0-prerelease.24106.4">
343+
<Dependency Name="optimization.windows_nt-x86.MIBC.Runtime" Version="1.0.0-prerelease.24219.3">
344344
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
345-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
345+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
346346
</Dependency>
347-
<Dependency Name="optimization.linux-x64.MIBC.Runtime" Version="1.0.0-prerelease.24106.4">
347+
<Dependency Name="optimization.linux-x64.MIBC.Runtime" Version="1.0.0-prerelease.24219.3">
348348
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
349-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
349+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
350350
</Dependency>
351-
<Dependency Name="optimization.PGO.CoreCLR" Version="1.0.0-prerelease.24106.4">
351+
<Dependency Name="optimization.PGO.CoreCLR" Version="1.0.0-prerelease.24219.3">
352352
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
353-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
353+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
354354
</Dependency>
355355
<Dependency Name="Microsoft.DotNet.HotReload.Utils.Generator.BuildTool" Version="9.0.0-alpha.0.24215.1">
356356
<Uri>https://github.com/dotnet/hotreload-utils</Uri>
@@ -396,13 +396,13 @@
396396
<Sha>cf8c24575410adf397c0823fd7061f9451049ea1</Sha>
397397
<SourceBuild RepoName="sdk" ManagedOnly="true" />
398398
</Dependency>
399-
<Dependency Name="optimization.windows_nt-arm64.MIBC.Runtime" Version="1.0.0-prerelease.24106.4">
399+
<Dependency Name="optimization.windows_nt-arm64.MIBC.Runtime" Version="1.0.0-prerelease.24219.3">
400400
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
401-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
401+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
402402
</Dependency>
403-
<Dependency Name="optimization.linux-arm64.MIBC.Runtime" Version="1.0.0-prerelease.24106.4">
403+
<Dependency Name="optimization.linux-arm64.MIBC.Runtime" Version="1.0.0-prerelease.24219.3">
404404
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
405-
<Sha>78a5b978e1965c1335edb4b9a22bc4d6ff5a77a6</Sha>
405+
<Sha>c54b8e8611d50594cc926fd7c81205871a38be6f</Sha>
406406
</Dependency>
407407
<!-- Necessary for source-build. This allows the package to be retrieved from previously-source-built artifacts
408408
and flow in as dependencies of the packages produced by runtime. -->

eng/Versions.props

+8-8
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@
153153
<SystemWindowsExtensionsTestDataVersion>9.0.0-beta.24215.1</SystemWindowsExtensionsTestDataVersion>
154154
<MicrosoftDotNetCilStripSourcesVersion>9.0.0-beta.24215.1</MicrosoftDotNetCilStripSourcesVersion>
155155
<!-- dotnet-optimization dependencies -->
156-
<optimizationwindows_ntx64MIBCRuntimeVersion>1.0.0-prerelease.24106.4</optimizationwindows_ntx64MIBCRuntimeVersion>
157-
<optimizationwindows_ntx86MIBCRuntimeVersion>1.0.0-prerelease.24106.4</optimizationwindows_ntx86MIBCRuntimeVersion>
158-
<optimizationwindows_ntarm64MIBCRuntimeVersion>1.0.0-prerelease.24106.4</optimizationwindows_ntarm64MIBCRuntimeVersion>
159-
<optimizationlinuxx64MIBCRuntimeVersion>1.0.0-prerelease.24106.4</optimizationlinuxx64MIBCRuntimeVersion>
160-
<optimizationlinuxarm64MIBCRuntimeVersion>1.0.0-prerelease.24106.4</optimizationlinuxarm64MIBCRuntimeVersion>
161-
<optimizationPGOCoreCLRVersion>1.0.0-prerelease.24106.4</optimizationPGOCoreCLRVersion>
156+
<optimizationwindows_ntx64MIBCRuntimeVersion>1.0.0-prerelease.24219.3</optimizationwindows_ntx64MIBCRuntimeVersion>
157+
<optimizationwindows_ntx86MIBCRuntimeVersion>1.0.0-prerelease.24219.3</optimizationwindows_ntx86MIBCRuntimeVersion>
158+
<optimizationwindows_ntarm64MIBCRuntimeVersion>1.0.0-prerelease.24219.3</optimizationwindows_ntarm64MIBCRuntimeVersion>
159+
<optimizationlinuxx64MIBCRuntimeVersion>1.0.0-prerelease.24219.3</optimizationlinuxx64MIBCRuntimeVersion>
160+
<optimizationlinuxarm64MIBCRuntimeVersion>1.0.0-prerelease.24219.3</optimizationlinuxarm64MIBCRuntimeVersion>
161+
<optimizationPGOCoreCLRVersion>1.0.0-prerelease.24219.3</optimizationPGOCoreCLRVersion>
162162
<!-- Not auto-updated. -->
163163
<MicrosoftDiaSymReaderVersion>2.0.0</MicrosoftDiaSymReaderVersion>
164164
<MicrosoftDiaSymReaderNativeVersion>17.8.0-beta1.23475.2</MicrosoftDiaSymReaderNativeVersion>
@@ -235,9 +235,9 @@
235235
Note: when the name is updated, make sure to update dependency name in eng/pipelines/common/xplat-setup.yml
236236
like - DarcDependenciesChanged.Microsoft_NET_Workload_Emscripten_Current_Manifest-9_0_100_Transport
237237
-->
238-
<MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion>9.0.0-preview.4.24215.3</MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion>
238+
<MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion>9.0.0-preview.4.24222.2</MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion>
239239
<MicrosoftNETRuntimeEmscriptenVersion>$(MicrosoftNETWorkloadEmscriptenCurrentManifest90100TransportVersion)</MicrosoftNETRuntimeEmscriptenVersion>
240-
<MicrosoftNETRuntimeEmscripten3134Pythonwinx64Version>9.0.0-preview.4.24215.3</MicrosoftNETRuntimeEmscripten3134Pythonwinx64Version>
240+
<MicrosoftNETRuntimeEmscripten3134Pythonwinx64Version>9.0.0-preview.4.24222.2</MicrosoftNETRuntimeEmscripten3134Pythonwinx64Version>
241241
<!-- workloads -->
242242
<SwixPackageVersion>1.1.87-gba258badda</SwixPackageVersion>
243243
<WixPackageVersion>1.0.0-v3.14.0.5722</WixPackageVersion>

eng/native/build-commons.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ build_native()
109109

110110
# set default iOS simulator deployment target
111111
# keep in sync with SetOSTargetMinVersions in the root Directory.Build.props
112-
cmakeArgs="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 $cmakeArgs"
112+
cmakeArgs="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=12.2 $cmakeArgs"
113113
if [[ "$__TargetArch" == x64 ]]; then
114114
cmakeArgs="-DCMAKE_OSX_ARCHITECTURES=\"x86_64\" $cmakeArgs"
115115
elif [[ "$__TargetArch" == arm64 ]]; then
@@ -123,7 +123,7 @@ build_native()
123123

124124
# set default iOS device deployment target
125125
# keep in sync with SetOSTargetMinVersions in the root Directory.Build.props
126-
cmakeArgs="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 $cmakeArgs"
126+
cmakeArgs="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_DEPLOYMENT_TARGET=12.2 $cmakeArgs"
127127
if [[ "$__TargetArch" == arm64 ]]; then
128128
cmakeArgs="-DCMAKE_OSX_ARCHITECTURES=\"arm64\" $cmakeArgs"
129129
else
@@ -135,7 +135,7 @@ build_native()
135135

136136
# set default tvOS simulator deployment target
137137
# keep in sync with SetOSTargetMinVersions in the root Directory.Build.props
138-
cmakeArgs="-DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvsimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 $cmakeArgs"
138+
cmakeArgs="-DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvsimulator -DCMAKE_OSX_DEPLOYMENT_TARGET=12.2 $cmakeArgs"
139139
if [[ "$__TargetArch" == x64 ]]; then
140140
cmakeArgs="-DCMAKE_OSX_ARCHITECTURES=\"x86_64\" $cmakeArgs"
141141
elif [[ "$__TargetArch" == arm64 ]]; then
@@ -149,7 +149,7 @@ build_native()
149149

150150
# set default tvOS device deployment target
151151
# keep in sync with SetOSTargetMinVersions in the root Directory.Build.props
152-
cmakeArgs="-DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvos -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 $cmakeArgs"
152+
cmakeArgs="-DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvos -DCMAKE_OSX_DEPLOYMENT_TARGET=12.2 $cmakeArgs"
153153
if [[ "$__TargetArch" == arm64 ]]; then
154154
cmakeArgs="-DCMAKE_OSX_ARCHITECTURES=\"arm64\" $cmakeArgs"
155155
else

eng/native/configurecompiler.cmake

+13-7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1414

1515
include(CheckCCompilerFlag)
1616
include(CheckCXXCompilerFlag)
17+
include(CheckLinkerFlag)
1718

1819
# "configureoptimization.cmake" must be included after CLR_CMAKE_HOST_UNIX has been set.
1920
include(${CMAKE_CURRENT_LIST_DIR}/configureoptimization.cmake)
@@ -300,7 +301,13 @@ elseif(CLR_CMAKE_HOST_SUNOS)
300301
add_definitions(-D__EXTENSIONS__ -D_XPG4_2 -D_POSIX_PTHREAD_SEMANTICS)
301302
elseif(CLR_CMAKE_HOST_OSX AND NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAKE_HOST_TVOS)
302303
add_definitions(-D_XOPEN_SOURCE)
303-
add_linker_flag("-Wl,-bind_at_load")
304+
305+
# the new linker in Xcode 15 (ld_new/ld_prime) deprecated the -bind_at_load flag for macOS which causes a warning
306+
# that fails the build since we build with -Werror. Only pass the flag if we need it, i.e. older linkers.
307+
check_linker_flag(C "-Wl,-bind_at_load,-fatal_warnings" LINKER_SUPPORTS_BIND_AT_LOAD_FLAG)
308+
if(LINKER_SUPPORTS_BIND_AT_LOAD_FLAG)
309+
add_linker_flag("-Wl,-bind_at_load")
310+
endif()
304311
elseif(CLR_CMAKE_HOST_HAIKU)
305312
add_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,--noexecstack>)
306313
add_linker_flag("-Wl,--no-undefined")
@@ -662,11 +669,11 @@ if (CLR_CMAKE_HOST_UNIX)
662669
set(DISABLE_OVERRIDING_MIN_VERSION_ERROR -Wno-overriding-t-option)
663670
add_link_options(-Wno-overriding-t-option)
664671
if(CLR_CMAKE_HOST_ARCH_ARM64)
665-
set(MACOS_VERSION_MIN_FLAGS "-target arm64-apple-ios14.2-macabi")
666-
add_link_options(-target arm64-apple-ios14.2-macabi)
672+
set(MACOS_VERSION_MIN_FLAGS "-target arm64-apple-ios15.0-macabi")
673+
add_link_options(-target arm64-apple-ios15.0-macabi)
667674
elseif(CLR_CMAKE_HOST_ARCH_AMD64)
668-
set(MACOS_VERSION_MIN_FLAGS "-target x86_64-apple-ios13.5-macabi")
669-
add_link_options(-target x86_64-apple-ios13.5-macabi)
675+
set(MACOS_VERSION_MIN_FLAGS "-target x86_64-apple-ios15.0-macabi")
676+
add_link_options(-target x86_64-apple-ios15.0-macabi)
670677
else()
671678
clr_unknown_arch()
672679
endif()
@@ -679,11 +686,10 @@ if (CLR_CMAKE_HOST_UNIX)
679686
set(CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} ${MACOS_VERSION_MIN_FLAGS} ${DISABLE_OVERRIDING_MIN_VERSION_ERROR}")
680687
set(CMAKE_OBJCXX_FLAGS "${CMAKE_OBJCXX_FLAGS} ${MACOS_VERSION_MIN_FLAGS} ${DISABLE_OVERRIDING_MIN_VERSION_ERROR}")
681688
elseif(CLR_CMAKE_HOST_OSX)
689+
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
682690
if(CLR_CMAKE_HOST_ARCH_ARM64)
683-
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
684691
add_compile_options(-arch arm64)
685692
elseif(CLR_CMAKE_HOST_ARCH_AMD64)
686-
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
687693
add_compile_options(-arch x86_64)
688694
else()
689695
clr_unknown_arch()

eng/native/gen-buildsys.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if /i "%__Arch%" == "wasm" (
6262
if /i "%__Os%" == "wasi" (
6363
if "%WASI_SDK_PATH%" == "" (
6464
if not exist "%__repoRoot%\src\mono\wasi\wasi-sdk" (
65-
echo Error: Should set WASI_SDK_PATH environment variable pointing to emsdk root.
65+
echo Error: Should set WASI_SDK_PATH environment variable pointing to WASI SDK root.
6666
exit /B 1
6767
)
6868

eng/pipelines/common/platform-matrix.yml

+19
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,25 @@ jobs:
294294
helixQueueGroup: ${{ parameters.helixQueueGroup }}
295295
${{ insert }}: ${{ parameters.jobParameters }}
296296

297+
- ${{ if containsValue(parameters.platforms, 'linux_musl_x64_dev_innerloop') }}:
298+
- template: xplat-setup.yml
299+
parameters:
300+
jobTemplate: ${{ parameters.jobTemplate }}
301+
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
302+
variables: ${{ parameters.variables }}
303+
osGroup: linux
304+
osSubgroup: _musl
305+
archType: x64
306+
targetRid: linux-musl-x64
307+
platform: linux_musl_x64
308+
shouldContinueOnError: ${{ parameters.shouldContinueOnError }}
309+
container: linux_musl_x64_dev_innerloop
310+
jobParameters:
311+
runtimeFlavor: ${{ parameters.runtimeFlavor }}
312+
buildConfig: ${{ parameters.buildConfig }}
313+
helixQueueGroup: ${{ parameters.helixQueueGroup }}
314+
${{ insert }}: ${{ parameters.jobParameters }}
315+
297316
# GCC Linux x64 Build
298317

299318
- ${{ if containsValue(parameters.platforms, 'gcc_linux_x64') }}:

eng/pipelines/common/templates/pipeline-with-resources.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ extends:
6868
linux_x64_dev_innerloop:
6969
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
7070

71+
linux_musl_x64_dev_innerloop:
72+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
73+
7174
# We use a CentOS Stream 8 image here to test building from source on CentOS Stream 8.
7275
SourceBuild_centos_x64:
7376
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8
@@ -77,12 +80,12 @@ extends:
7780
image: mcr.microsoft.com/dotnet-buildtools/prereqs:almalinux-8-source-build
7881

7982
linux_s390x:
80-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-s390x
83+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-s390x
8184
env:
8285
ROOTFS_DIR: /crossrootfs/s390x
8386

8487
linux_ppc64le:
85-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-ppc64le
88+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-ppc64le
8689
env:
8790
ROOTFS_DIR: /crossrootfs/ppc64le
8891

@@ -121,4 +124,4 @@ extends:
121124
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
122125

123126
rpmpkg:
124-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
127+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm

0 commit comments

Comments
 (0)