Skip to content

Consume libraries that we vendor fully by building separately and using a custom prefix path #113176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
81d8446
Build brotli as part of a new "vendored libs" project group so we can…
jkoritzinsky Feb 26, 2025
9782b52
Correctly handle multiple cmake args, use the environment variables t…
jkoritzinsky Mar 4, 2025
6bc280b
Convert zlib-ng to also use the new vendored-libs model
jkoritzinsky Mar 5, 2025
5ddb798
Fix up everything to use the ZLIB find module.
jkoritzinsky Mar 5, 2025
1853b23
There will always be a ZLIB::ZLIB target available, so remove the log…
jkoritzinsky Mar 5, 2025
a8e8301
Merge branch 'main' of https://github.com/dotnet/runtime into vendore…
jkoritzinsky Mar 5, 2025
0c080ac
Hook into more native builds and add bash script
jkoritzinsky Mar 7, 2025
4f67d24
Fix aot cmake args
jkoritzinsky Mar 7, 2025
b83c33e
Fix permissions
jkoritzinsky Mar 14, 2025
3887bb5
Pass vendored prefix down on Windows
jkoritzinsky Mar 14, 2025
599ca29
Pass the project name to the build command
jkoritzinsky Mar 14, 2025
204019c
Fix item function name
jkoritzinsky Mar 14, 2025
3ae8e28
Look for static libs on Unix platforms
jkoritzinsky Mar 18, 2025
8d65147
Adjust lookup rules
jkoritzinsky Mar 18, 2025
aaa7974
Fix conditions
jkoritzinsky Mar 21, 2025
ea5ab50
Copy NOIPO files as part of libraries binplacing instead of in CMake …
jkoritzinsky Mar 28, 2025
fcc3dcf
Merge branch 'main' of github.com:dotnet/runtime into vendored-libs
jkoritzinsky Apr 15, 2025
5b7c5aa
Clean up debug logic and dont run IPO on Debug builds (in case a loca…
jkoritzinsky Apr 15, 2025
b4bc58e
Don't reference the vendored libraries from the cross-components build.
jkoritzinsky Apr 16, 2025
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
1 change: 1 addition & 0 deletions eng/DotNetBuild.props
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<InnerBuildArgs Condition="$(UseSystemLibs.Contains('+rapidjson'))">$(InnerBuildArgs) --cmakeargs -DCLR_CMAKE_USE_SYSTEM_RAPIDJSON=true</InnerBuildArgs>
<InnerBuildArgs Condition="$(UseSystemLibs.Contains('+zlib'))">$(InnerBuildArgs) --cmakeargs -DCLR_CMAKE_USE_SYSTEM_ZLIB=true</InnerBuildArgs>
<InnerBuildArgs Condition="$(UseSystemLibs.Contains('-lttng'))">$(InnerBuildArgs) /p:FeatureXplatEventSource=false</InnerBuildArgs>
<InnerBuildArgs Condition="'$(UseSystemLibs)' != ''">$(InnerBuildArgs) /p:UseSystemLibs=$(UseSystemLibs)</InnerBuildArgs>

<!-- Needed until https://github.com/dotnet/runtime/issues/109329 is fixed. -->
<InnerBuildArgs Condition="'$(NetCoreAppToolCurrentVersion)' != ''">$(InnerBuildArgs) /p:NetCoreAppToolCurrentVersion=$(NetCoreAppToolCurrentVersion)</InnerBuildArgs>
Expand Down
1 change: 1 addition & 0 deletions eng/liveBuilds.targets
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<MonoArtifactsPath Condition="'$(MonoArtifactsPath)' == ''">$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts', 'bin', 'mono', '$(TargetOS).$(TargetArchitecture).$(MonoConfiguration)'))</MonoArtifactsPath>
<LibrariesArtifactsPath Condition="'$(LibrariesArtifactsPath)' == ''">$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts'))</LibrariesArtifactsPath>
<LibrariesAllConfigurationsArtifactsPath Condition="'$(LibrariesAllConfigurationsArtifactsPath)' == ''">$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts'))</LibrariesAllConfigurationsArtifactsPath>
<VendoredLibraryRootPath>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts', 'bin', 'native', 'external', '$(TargetOS).$(TargetArchitecture).$(Configuration)'))</VendoredLibraryRootPath>
</PropertyGroup>

<!-- Set up artifact subpaths. -->
Expand Down
5 changes: 5 additions & 0 deletions eng/native/configureplatform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,15 @@ if (CLR_CMAKE_TARGET_ANDROID OR CLR_CMAKE_TARGET_MACCATALYST OR CLR_CMAKE_TARGET
# Some platforms are opted-out from using the in-tree zlib-ng by default:
# - Android and iOS-like platforms: concerns about extra binary size
# - Armv6: zlib-ng has build breaks
# Keep in sync with the conditions in src/native/external/vendored-libs.proj
set(CLR_CMAKE_USE_SYSTEM_ZLIB 1)
endif()

if (NOT CLR_CMAKE_TARGET_ANDROID AND NOT CLR_CMAKE_TARGET_BROWSER)
# opt into building tools like ildasm/ilasm
set(CLR_CMAKE_BUILD_TOOLS 1)
endif()

if (CLR_CMAKE_TARGET_UNIX)
list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".a")
endif()
2 changes: 1 addition & 1 deletion eng/native/gen-buildsys.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if not "%__ConfigureOnly%" == "1" (
if /i "%__UseEmcmake%" == "1" (
call "!EMSDK_PATH!/emsdk_env.cmd" > nul 2>&1 && emcmake "%CMakePath%" %__ExtraCmakeParams% --no-warn-unused-cli -G "%__CmakeGenerator%" -B %__IntermediatesDir% -S %__SourceDir%
) else (
echo "%CMakePath% %__ExtraCmakeParams% --no-warn-unused-cli -G %__CmakeGenerator% -B %__IntermediatesDir% -S %__SourceDir%"
echo %CMakePath% %__ExtraCmakeParams% --no-warn-unused-cli -G %__CmakeGenerator% -B %__IntermediatesDir% -S %__SourceDir%
"%CMakePath%" %__ExtraCmakeParams% --no-warn-unused-cli -G "%__CmakeGenerator%" -B %__IntermediatesDir% -S %__SourceDir%
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ The .NET Foundation licenses this file to you under the MIT license.
<NativeLibrary Condition="'$(IlcMultiModule)' == 'true'" Include="$(SharedLibrary)" />
<NativeLibrary Include="$(IlcSdkPath)$(StandaloneGCSupportName)$(LibrarySuffix)" />
<NativeLibrary Include="$(IlcSdkPath)aotminipal$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)zlibstatic$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)brotlicommon$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)brotlienc$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)brotlidec$(LibFileExt)" />
<NativeLibrary Include="$(IlcFrameworkNativePath)zlibstatic$(LibFileExt)" />
<NativeLibrary Include="$(IlcFrameworkNativePath)brotlicommon$(LibFileExt)" />
<NativeLibrary Include="$(IlcFrameworkNativePath)brotlienc$(LibFileExt)" />
<NativeLibrary Include="$(IlcFrameworkNativePath)brotlidec$(LibFileExt)" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/runtime-prereqs.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<Import Project="$(RepositoryEngineeringDir)nativepgo.targets" />

<Target Name="BuildPrereqs" BeforeTargets="Build" DependsOnTargets="GenerateRuntimeVersionFile;GenerateNativeSourcelinkFile" />
<!--
This is a workaround when cross-compiling on Windows for Android.

<!--
This is a workaround when cross-compiling on Windows for Android.

https://github.com/dotnet/arcade/issues/15496
-->
Expand Down
11 changes: 9 additions & 2 deletions src/coreclr/runtime.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<_BuildNativeTargetOS>$(TargetOS)</_BuildNativeTargetOS>
<_BuildNativeTargetOS Condition="'$(TargetsLinuxBionic)' == 'true'">linux-bionic</_BuildNativeTargetOS>
<HasCdacBuildTool Condition="'$(ClrFullNativeBuild)' == 'true' or '$(ClrRuntimeSubset)' == 'true' or '$(ClrDebugSubset)' == 'true' or '$(ClrCrossComponentsSubset)' == 'true'">true</HasCdacBuildTool>
<HasCdacBuildTool Condition="'$(ClrFullNativeBuild)' == 'true' or '$(ClrRuntimeSubset)' == 'true' or '$(ClrDebugSubset)' == 'true'">true</HasCdacBuildTool>
<_IcuDir Condition="'$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)' != '' and '$(TargetsBrowser)' == 'true'">$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)/runtimes/$(TargetOS)-$(TargetArchitecture)$(_RuntimeVariant)/native</_IcuDir>
</PropertyGroup>

Expand All @@ -13,6 +13,14 @@
<PackageReference Condition="'$(TargetsBrowser)' == 'true'" Include="Microsoft.NETCore.Runtime.ICU.Transport" PrivateAssets="all" Version="$(MicrosoftNETCoreRuntimeICUTransportVersion)" GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup Condition="'$(HostCrossOS)' == ''">
<ProjectReference Include="$(RepoRoot)/src/native/external/vendored-libs.proj" />
</ItemGroup>

<ItemGroup>
<_CMakeArgs Include="-DCMAKE_PREFIX_PATH=$(VendoredLibraryRootPath.TrimEnd('\\'))" />
</ItemGroup>

<Import Project="$(RepositoryEngineeringDir)nativepgo.targets" />

<Target Name="BuildRuntime"
Expand Down Expand Up @@ -79,7 +87,6 @@
<_CoreClrBuildArg Condition="'$(ClrILToolsSubset)' == 'true'" Include="-component iltools" />
<_CoreClrBuildArg Condition="'$(ClrNativeAotSubset)' == 'true'" Include="-component nativeaot" />
<_CoreClrBuildArg Condition="'$(ClrSpmiSubset)' == 'true'" Include="-component spmi" />
<_CoreClrBuildArg Condition="'$(ClrCrossComponentsSubset)' == 'true'" Include="-component crosscomponents" />
<_CoreClrBuildArg Condition="'$(ClrDebugSubset)' == 'true'" Include="-component debug" />
<_CoreClrBuildArg Condition="'$(ClrCdacSubset)' == 'true'" Include= "-component cdac" />
</ItemGroup>
Expand Down Expand Up @@ -116,7 +123,7 @@

<!-- Use IgnoreStandardErrorWarningFormat because Arcade sets WarnAsError and we want to avoid upgrading compiler warnings to errors in release branches -->
<Message Text="Executing $(_CoreClrBuildPreSource)$(MSBuildThisFileDirectory)&quot;$(MSBuildThisFileDirectory)$(_CoreClrBuildScript)&quot; @(_CoreClrBuildArg->'%(Identity)',' ')" Importance="High" />
<Exec Command="$(_CoreClrBuildPreSource)$(MSBuildThisFileDirectory)&quot;$(_CoreClrBuildScript)&quot; @(_CoreClrBuildArg->'%(Identity)',' ')"

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.x64.Release/" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.25212.3" -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_RID=linux-musl-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build freebsd-x64 Debug CoreCLR_TwoStage)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/freebsd.x64.Checked/" -x64 -checked -ci -cross -os freebsd -outputrid freebsd-x64 -cmakeargs "-DCLR_DOTNET_RID=freebsd-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/freebsd.x64.Checked/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.x64.Checked/" -x64 -checked -ci -cross -os linux -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_RID=linux-musl-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.arm64.Release/" -arm64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-arm64.pgo.coreclr/1.0.0-prerelease.25212.3" -outputrid linux-musl-arm64 -cmakeargs "-DCLR_DOTNET_RID=linux-musl-arm64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm64.Release/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.arm64.Checked/" -arm64 -checked -ci -cross -os linux -outputrid linux-musl-arm64 -cmakeargs "-DCLR_DOTNET_RID=linux-musl-arm64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.arm64.Checked/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.x64.Release/" -x64 -release -ci -cross -os linux -pgodatapath "/__w/1/s/.packages/optimization.linux-x64.pgo.coreclr/1.0.0-prerelease.25212.3" -outputrid linux-musl-x64 -cmakeargs "-DCLR_DOTNET_RID=linux-musl-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/cdac-build-tool/cdac-build-tool.dll"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_CoreCLR)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/android.arm64.Release/" -arm64 -release -ci -os android -outputrid android-arm64 -cmakeargs "-DCLR_DOTNET_RID=android-arm64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/android.arm64.Release/cdac-build-tool/cdac-build-tool.dll" -component runtime -component alljits -cmakeargs "-DANDROID_STL=c++_static" -cmakeargs -DANDROID_CPP_FEATURES="no-rtti exceptions"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build android-x64 Release AllSubsets_CoreCLR)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/android.x64.Release/" -x64 -release -ci -os android -outputrid android-x64 -cmakeargs "-DCLR_DOTNET_RID=android-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/android.x64.Release/cdac-build-tool/cdac-build-tool.dll" -component runtime -component alljits -cmakeargs "-DANDROID_STL=c++_static" -cmakeargs -DANDROID_CPP_FEATURES="no-rtti exceptions"" exited with code 1.

Check failure on line 126 in src/coreclr/runtime.proj

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked Native_GCC)

src/coreclr/runtime.proj#L126

src/coreclr/runtime.proj(126,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "/__w/1/s/src/coreclr/"build-runtime.sh" -cmakeargs "-DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/linux.x64.Checked/" -x64 -checked gcc -ci -os linux -outputrid linux-x64 -cmakeargs "-DCLR_DOTNET_RID=linux-x64" -cmakeargs "-DCLR_DOTNET_HOST_PATH=/__w/1/s/.dotnet/dotnet" -cmakeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/cdac-build-tool/cdac-build-tool.dll"" exited with code 2.
IgnoreStandardErrorWarningFormat="true" />
</Target>

Expand Down
18 changes: 18 additions & 0 deletions src/libraries/native-binplace.proj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
</ItemGroup>
</Target>

<Target Name="GetNoIPODependencies" BeforeTargets="GetBinPlaceItems">
<ItemGroup>
<NoIPOLib Include="$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)brotlienc$(StaticLibSuffix);
$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)brotlidec$(StaticLibSuffix);
$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)brotlicommon$(StaticLibSuffix)" />
<NoIPOLib Condition="'$(TargetsWindows)' != 'true'" Include="$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)z$(StaticLibSuffix)" />
<NoIPOLib Condition="'$(TargetsWindows)' == 'true'" Include="$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)zlibstatic$(StaticLibSuffix)" />
<NoIPOLib Condition="'$(TargetsWindows)' == 'true'"
Include="$(VendoredLibraryRootPath)\NOIPO\lib\$(LibPrefix)zlibstaticd$(StaticLibSuffix)"
TargetPath="$(RuntimeBinDir)\aotsdk\$(LibPrefix)zlibstatic$(StaticLibSuffix)" />
</ItemGroup>
<!-- Some of the libraries above may not be produced depending on what system libs (as compared to vendored libs) the build has requested. -->
<ItemGroup>
<BinPlaceItem Include="@(NoIPOLib)"
Condition="Exists('%(NoIPOLib.Identity)')" />
</ItemGroup>
</Target>

<Target Name="Build" DependsOnTargets="BinPlace" />
<Target Name="CreateManifestResourceNames" />
</Project>
10 changes: 2 additions & 8 deletions src/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -503,14 +503,8 @@ endif()

# Decide if we need zlib-ng.
if(NOT DISABLE_EMBEDDED_PDB OR NOT DISABLE_LOG_PROFILER_GZ)
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
# if we're not on a platform where we use the in-tree zlib-ng, require system zlib
include(${CLR_SRC_NATIVE_DIR}/libs/System.IO.Compression.Native/extra_libs.cmake)
set(Z_LIBS)
append_extra_compression_libs(Z_LIBS)
else()
include(${CLR_SRC_NATIVE_DIR}/external/zlib-ng.cmake)
endif()
find_package(ZLIB REQUIRED)
set (Z_LIBS ZLIB::ZLIB)
endif()

######################################
Expand Down
9 changes: 9 additions & 0 deletions src/mono/mono.proj
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="$(RepoRoot)/src/native/external/vendored-libs.proj" />
</ItemGroup>

<!--
Like Wasm, Wasi needs a 64-bit python on windows to pinvoke into libClang.dll for offset generation.
Only wasi doesn't come with its own python and windows uses 32-bit python, so refer to the transport pack instead.
Expand Down Expand Up @@ -422,6 +426,7 @@
<_MonoCMakeArgs Include="-DGC_SUSPEND=$(MonoThreadSuspend)" />
<_MonoCMakeArgs Include="-DMONO_LIB_NAME=$(MonoLibName)" />
<_MonoCMakeArgs Include="-DMONO_SHARED_LIB_NAME=$(MonoSharedLibName)" />
<_MonoCMakeArgs Include="-DCMAKE_PREFIX_PATH=$(VendoredLibraryRootPath.TrimEnd('\\'))" />
</ItemGroup>

<ItemGroup Condition="'$(HostOS)' == 'Linux' and '$(MonoEnableLLVM)' == 'true' and '$(TargetArchitecture)' != 'wasm' and '$(MonoUseLibCxx)' == 'true'">
Expand Down Expand Up @@ -774,7 +779,7 @@
</PropertyGroup>
<Message Condition="'$(_MonoSkipCMakeConfigure)' == 'true'" Text="The CMake command line is the same as the last run. Skipping running CMake configure." Importance="High"/>
<Message Condition="'$(_MonoSkipCMakeConfigure)' != 'true'" Text="Running '$(_MonoCMakeConfigureCommand)' in '$(MonoObjDir)'" Importance="High"/>
<Exec Condition="'$(_MonoSkipCMakeConfigure)' != 'true'" Command="$(_MonoCMakeConfigureCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoObjDir)"/>

Check failure on line 782 in src/mono/mono.proj

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux release MonoAOTOffsets)

src/mono/mono.proj#L782

src/mono/mono.proj(782,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "bash -c 'source /__w/1/s/src/mono/browser/emsdk/emsdk_env.sh 2>&1 && emcmake cmake -DENABLE_WERROR=1 -DCMAKE_INSTALL_PREFIX="/__w/1/s/artifacts/obj/mono/browser.wasm.Release/out" -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DGC_SUSPEND=preemptive -DMONO_LIB_NAME=monosgen-2.0 -DMONO_SHARED_LIB_NAME=monosgen-2.0 -DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/browser.wasm.Release/ -DENABLE_MINIMAL=jit,sgen_major_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,sgen_toggleref,sgen_debug_helpers,sgen_binary_protocol,logging,interpreter,qcalls,debugger_agent,log_dest,assert_messages,threads -DENABLE_INTERP_LIB=1 -DDISABLE_ICALL_TABLES=1 -DENABLE_ICALL_EXPORT=1 -DENABLE_LAZY_GC_THREAD_CREATION=1 -DENABLE_WEBCIL=1 -DENABLE_LLVM_RUNTIME=1 -DEMSCRIPTEN_SYSTEM_PROCESSOR=wasm -DFEATURE_PERFTRACING_PAL_WS=1 -DFEATURE_PERFTRACING_DISABLE_PERFTRACING_LISTEN_PORTS=1 -DFEATURE_PERFTRACING_DISABLE_DEFAULT_LISTEN_PORT=1 -DFEATURE_PERFTRACING_DISABLE_THREADS=1 -DSTATIC_COMPONENTS=1 -DMONO_COMPONENTS_RID=browser-wasm -DCLR_CMAKE_HOST_ARCH=x64 -DCMAKE_C_FLAGS=" " -DCMAKE_CXX_FLAGS=" " "/__w/1/s/src/mono"'" exited with code 1.

Check failure on line 782 in src/mono/mono.proj

View check run for this annotation

Azure Pipelines / runtime (Build wasi-wasm linux release MonoAOTOffsets)

src/mono/mono.proj#L782

src/mono/mono.proj(782,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "cmake -DENABLE_WERROR=1 -DCMAKE_INSTALL_PREFIX="/__w/1/s/artifacts/obj/mono/wasi.wasm.Release/out" -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DGC_SUSPEND=preemptive -DMONO_LIB_NAME=monosgen-2.0 -DMONO_SHARED_LIB_NAME=coreclr -DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/wasi.wasm.Release/ -DENABLE_MINIMAL=jit,sgen_major_marksweep_conc,sgen_split_nursery,sgen_gc_bridge,sgen_toggleref,sgen_debug_helpers,sgen_binary_protocol,logging,interpreter,qcalls,debugger_agent,log_dest,assert_messages,threads -DENABLE_INTERP_LIB=1 -DDISABLE_ICALL_TABLES=1 -DENABLE_ICALL_EXPORT=1 -DENABLE_LAZY_GC_THREAD_CREATION=1 -DENABLE_WEBCIL=1 -DFEATURE_PERFTRACING_DISABLE_PERFTRACING_LISTEN_PORTS=1 -DFEATURE_PERFTRACING_DISABLE_DEFAULT_LISTEN_PORT=1 -DFEATURE_PERFTRACING_DISABLE_CONNECT_PORTS=1 -DFEATURE_PERFTRACING_DISABLE_THREADS=1 -DSTATIC_COMPONENTS=1 -DMONO_COMPONENTS_RID=wasi-wasm -DCLR_CMAKE_HOST_ARCH=x64 -DCMAKE_C_FLAGS=" -I/__w/1/s/src/mono/wasi/include -I/__w/1/s/src/mono/wasi/mono-include -I/__w/1/s/src/native/public -I/__w/1/s/src/mono/mono/eglib -D_WASI_EMULATED_PROCESS_CLOCKS -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_PTHREAD" -DCMAKE_CXX_FLAGS=" " "/__w/1/s/src/mono" -DWASI_SDK_PREFIX=/usr/local/wasi-sdk/ -DCMAKE_SYSROOT=/usr/local/wasi-sdk/share/wasi-sysroot -DCMAKE_TOOLCHAIN_FILE=/usr/local/wasi-sdk//share/cmake/wasi-sdk-p2.cmake -DCMAKE_CXX_FLAGS="--sysroot=/usr/local/wasi-sdk/share/wasi-sysroot"" exited with code 1.
<WriteLinesToFile
Condition="'$(_MonoSkipCMakeConfigure)' != 'true'"
File="$(MonoObjDir)cmake_cmd_line.txt"
Expand All @@ -795,6 +800,10 @@
<AotHostOS Condition="'$(AotHostOS)' == ''">$(HostOS)</AotHostOS>
</PropertyGroup>

<ItemGroup>
<MonoAOTCMakeArgs Include="-DCMAKE_PREFIX_PATH=$(VendoredLibraryRootPath.TrimEnd('\\'))" />
</ItemGroup>

<!-- iOS/tvOS specific options -->
<PropertyGroup Condition="'$(TargetstvOS)' == 'true' or '$(TargetsiOS)' == 'true'">
<!-- FIXME: Disable for simulator -->
Expand Down Expand Up @@ -1017,7 +1026,7 @@
</PropertyGroup>
<Message Condition="'$(_MonoSkipAotCMakeConfigure)' == 'true'" Text="The AOT Cross CMake command line is the same as the last run. Skipping running CMake configure." Importance="High"/>
<Message Condition="'$(_MonoSkipAotCMakeConfigure)' != 'true'" Text="Running '$(_MonoAotCMakeConfigureCommand)' in '$(MonoObjCrossDir)'" Importance="High"/>
<Exec Condition="'$(_MonoSkipAotCMakeConfigure)' != 'true'" Command="$(_MonoAotCMakeConfigureCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoObjCrossDir)"/>

Check failure on line 1029 in src/mono/mono.proj

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/mono/mono.proj#L1029

src/mono/mono.proj(1029,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "sh -c 'build_arch="arm64" ROOTFS_DIR="" compiler="clang" . "/__w/1/s/eng/common/native/init-compiler.sh" && cmake -DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/android.arm64.Release/ -DMONO_SET_RPATH_ORIGIN=true -DAOT_TARGET_TRIPLE=aarch64-v8a-linux-android -DCMAKE_INSTALL_PREFIX=/__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/out -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIMAL= -DENABLE_ICALL_SYMBOL_MAP=1 -DDISABLE_SHARED_LIBS=1 -DDISABLE_LIBS=1 -DAOT_COMPONENTS=1 -DSTATIC_COMPONENTS=1 -DAOT_OFFSETS_FILE="/__w/1/s/src/mono/mono/offsets/aarch64-v8a-linux-android.h" -DLLVM_PREFIX=/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64 -DCMAKE_C_FLAGS=" -Wl,--build-id=sha1" -DCMAKE_CXX_FLAGS=" -I/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/include/c++/v1 -L/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/lib -stdlib=libc++ -Wl,--build-id=sha1" -DGC_SUSPEND=hybrid -DMONO_CROSS_COMPILE_EXECUTABLE_NAME=1 "/__w/1/s/src/mono"'" exited with code 1.

Check failure on line 1029 in src/mono/mono.proj

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/mono/mono.proj#L1029

src/mono/mono.proj(1029,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "sh -c 'build_arch="arm" ROOTFS_DIR="" compiler="clang" . "/__w/1/s/eng/common/native/init-compiler.sh" && cmake -DCMAKE_PREFIX_PATH=/__w/1/s/artifacts/bin/native/external/android.arm.Release/ -DMONO_SET_RPATH_ORIGIN=true -DAOT_TARGET_TRIPLE=armv7-none-linux-androideabi -DCMAKE_INSTALL_PREFIX=/__w/1/s/artifacts/obj/mono/android.arm.Release/cross/out -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIMAL= -DENABLE_ICALL_SYMBOL_MAP=1 -DDISABLE_SHARED_LIBS=1 -DDISABLE_LIBS=1 -DAOT_COMPONENTS=1 -DSTATIC_COMPONENTS=1 -DAOT_OFFSETS_FILE="/__w/1/s/src/mono/mono/offsets/armv7-none-linux-androideabi.h" -DLLVM_PREFIX=/__w/1/s/artifacts/obj/mono/android.arm.Release/llvm//x64 -DCMAKE_C_FLAGS=" -Wl,--build-id=sha1" -DCMAKE_CXX_FLAGS=" -I/__w/1/s/artifacts/obj/mono/android.arm.Release/llvm//x64/include/c++/v1 -L/__w/1/s/artifacts/obj/mono/android.arm.Release/llvm//x64/lib -stdlib=libc++ -Wl,--build-id=sha1" -DGC_SUSPEND=hybrid -DMONO_CROSS_COMPILE_EXECUTABLE_NAME=1 "/__w/1/s/src/mono"'" exited with code 1.
<WriteLinesToFile
Condition="'$(_MonoSkipAotCMakeConfigure)' != 'true'"
File="$(MonoObjCrossDir)cmake_cmd_line.txt"
Expand All @@ -1026,7 +1035,7 @@

<!-- build -->
<Message Text="Running '$(_MonoAotCMakeBuildCommand)' in '$(MonoObjCrossDir)'" Importance="High" />
<Exec Condition="'$(MonoGenerateOffsetsOSGroups)' == ''" Command="$(_MonoAotCMakeBuildCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoObjCrossDir)"/>

Check failure on line 1038 in src/mono/mono.proj

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 debug Mono_Runtime)

src/mono/mono.proj#L1038

src/mono/mono.proj(1038,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command " cmake --build . --target install --config Debug" exited with code 1.
</Target>

<PropertyGroup>
Expand Down
7 changes: 1 addition & 6 deletions src/mono/mono/eventpipe/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ if(ENABLE_PERFTRACING)
target_sources(ep-test PRIVATE "${mono-components-objects}")

set(EPTEST_LINKABLE_LIBS "")
list(APPEND EPTEST_LINKABLE_LIBS eglib_api monosgen-static ${OS_LIBS} ${LLVM_LIBS} monoapi)
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND EPTEST_LINKABLE_LIBS ${EPTEST_LINKABLE_LIBS} ${Z_LIBS})
else()
list(APPEND EPTEST_LINKABLE_LIBS ${EPTEST_LINKABLE_LIBS} zlib)
endif()
list(APPEND EPTEST_LINKABLE_LIBS eglib_api monosgen-static ${OS_LIBS} ${LLVM_LIBS} monoapi ${Z_LIBS})
target_link_libraries(ep-test PRIVATE ${EPTEST_LINKABLE_LIBS})

install_with_stripped_symbols(ep-test TARGETS bin)
Expand Down
6 changes: 0 additions & 6 deletions src/mono/mono/metadata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ if(HOST_WIN32 AND NOT DISABLE_SHARED_LIBS)

set(METADATAOBJECTSSHARED_LINKABLE_LIBS "")
list(APPEND METADATAOBJECTSSHARED_LINKABLE_LIBS monoapi eglib_api utils_objects_shared)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND METADATAOBJECTSSHARED_LINKABLE_LIBS zlib)
endif()
target_link_libraries(metadata_objects_shared PRIVATE ${METADATAOBJECTSSHARED_LINKABLE_LIBS})

# note: metadata_objects is an object library, so this doesn't force linking with sgen,
Expand All @@ -222,9 +219,6 @@ target_compile_definitions(metadata_objects PRIVATE ${metadata_compile_definitio

set(METADATAOBJECTS_LINKABLE_LIBS "")
list(APPEND METADATAOBJECTS_LINKABLE_LIBS monoapi eglib_api utils_objects)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND METADATAOBJECTS_LINKABLE_LIBS zlib)
endif()
target_link_libraries(metadata_objects PRIVATE ${METADATAOBJECTS_LINKABLE_LIBS})

# note: metadata_objects is an object library, so this doesn't force linking with sgen,
Expand Down
33 changes: 3 additions & 30 deletions src/mono/mono/mini/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,6 @@ add_library(monosgen-objects OBJECT "${monosgen-sources}")

set(MONOSGEN_OBJECTS_LINKABLE_LIBS "")
list(APPEND MONOSGEN_OBJECTS_LINKABLE_LIBS monoapi eglib_api utils_objects sgen_objects metadata_objects)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND MONOSGEN_OBJECTS_LINKABLE_LIBS zlib)
endif()
target_link_libraries (monosgen-objects PRIVATE ${MONOSGEN_OBJECTS_LINKABLE_LIBS})

if(NOT HOST_WIN32)
Expand Down Expand Up @@ -365,9 +362,6 @@ if(NOT DISABLE_SHARED_LIBS)

set(MONOSGENSHARED_LINKABLE_LIBS "")
list(APPEND MONOSGENSHARED_LINKABLE_LIBS monoapi eglib_objects dn-containers)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND MONOSGENSHARED_LINKABLE_LIBS zlib)
endif()
if(HOST_WIN32)
list(APPEND MONOSGENSHARED_LINKABLE_LIBS utils_objects_shared sgen_objects_shared metadata_objects_shared minipal)
target_link_libraries(monosgen-shared PRIVATE ${MONOSGENSHARED_LINKABLE_LIBS})
Expand All @@ -383,12 +377,7 @@ if(NOT DISABLE_SHARED_LIBS)
endif()

set(MONOSGENSHARED_LINKABLE_EXTRALIBS "")
list(APPEND MONOSGENSHARED_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS})
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND MONOSGENSHARED_LINKABLE_EXTRALIBS ${Z_LIBS})
else()
list(APPEND MONOSGENSHARED_LINKABLE_EXTRALIBS zlib)
endif()
list(APPEND MONOSGENSHARED_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS} ${Z_LIBS})
target_link_libraries(monosgen-shared PRIVATE ${MONOSGENSHARED_LINKABLE_EXTRALIBS})

if(TARGET_DARWIN)
Expand Down Expand Up @@ -437,18 +426,10 @@ if(NOT DISABLE_SHARED_LIBS)

set(FRAMEWORKCONFIG_LINKABLE_LIBS "")
list(APPEND FRAMEWORKCONFIG_LINKABLE_LIBS monoapi eglib_objects utils_objects sgen_objects metadata_objects dn-containers minipal)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND FRAMEWORKCONFIG_LINKABLE_LIBS zlib)
endif()
target_link_libraries(${frameworkconfig} PRIVATE ${FRAMEWORKCONFIG_LINKABLE_LIBS})

set(FRAMEWORKCONFIG_LINKABLE_EXTRALIBS "")
list(APPEND FRAMEWORKCONFIG_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS})
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND FRAMEWORKCONFIG_LINKABLE_EXTRALIBS zlib)
else()
list(APPEND FRAMEWORKCONFIG_LINKABLE_EXTRALIBS ${Z_LIBS})
endif()
list(APPEND FRAMEWORKCONFIG_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS} ${Z_LIBS})
target_link_libraries(${frameworkconfig} PRIVATE ${FRAMEWORKCONFIG_LINKABLE_EXTRALIBS})

set_property(TARGET ${frameworkconfig} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-compatibility_version -Wl,2.0 -Wl,-current_version -Wl,2.0")
Expand Down Expand Up @@ -568,22 +549,14 @@ if(NOT DISABLE_EXECUTABLES)

set(MONOSGEN_LINKABLE_LIBS "")
list(APPEND MONOSGEN_LINKABLE_LIBS monoapi eglib_api monosgen-static dn-containers)
if (NOT CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND MONOSGEN_LINKABLE_LIBS zlib)
endif()
target_link_libraries(mono-sgen PRIVATE ${MONOSGEN_LINKABLE_LIBS})

if (HOST_WASM)
target_link_libraries(mono-sgen PRIVATE mono-wasm-nosimd)
endif()

set(MONOSGEN_LINKABLE_EXTRALIBS "")
list(APPEND MONOSGEN_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS})
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
list(APPEND MONOSGEN_LINKABLE_EXTRALIBS ${Z_LIBS})
else()
list(APPEND MONOSGEN_LINKABLE_EXTRALIBS zlib)
endif()
list(APPEND MONOSGEN_LINKABLE_EXTRALIBS ${OS_LIBS} ${LLVM_LIBS} ${Z_LIBS})
target_link_libraries(mono-sgen PRIVATE ${MONOSGEN_LINKABLE_EXTRALIBS})

# musl-libc implements ucontext in a different library on s390x
Expand Down
12 changes: 2 additions & 10 deletions src/mono/mono/profiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ if(NOT DISABLE_LIBS)
install(TARGETS mono-profiler-log-static LIBRARY)

if(NOT DISABLE_LOG_PROFILER_GZ)
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
target_link_libraries(mono-profiler-log PRIVATE ${Z_LIBS})
else()
target_link_libraries(mono-profiler-log PRIVATE zlib)
endif()
target_link_libraries(mono-profiler-log PRIVATE ${Z_LIBS})
endif()
endif()

Expand All @@ -55,11 +51,7 @@ if(NOT DISABLE_LIBS)
install(TARGETS mono-profiler-log-static LIBRARY)

if(NOT DISABLE_LOG_PROFILER_GZ)
if (CLR_CMAKE_USE_SYSTEM_ZLIB)
target_link_libraries(mono-profiler-log-static PRIVATE ${Z_LIBS})
else()
target_link_libraries(mono-profiler-log-static PRIVATE zlib)
endif()
target_link_libraries(mono-profiler-log-static PRIVATE ${Z_LIBS})
endif()
endif()
endif()
8 changes: 0 additions & 8 deletions src/native/corehost/apphost/static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ if(CLR_CMAKE_TARGET_WIN32)
delayimp.lib
)

# additional requirements for System.IO.Compression.Native
include(${CLR_SRC_NATIVE_DIR}/libs/System.IO.Compression.Native/extra_libs.cmake)
append_extra_compression_libs(NATIVE_LIBS)

set(RUNTIMEINFO_LIB runtimeinfo)

else()
Expand Down Expand Up @@ -190,10 +186,6 @@ else()
nativeresourcestring
)

# additional requirements for System.IO.Compression.Native
include(${CLR_SRC_NATIVE_DIR}/libs/System.IO.Compression.Native/extra_libs.cmake)
append_extra_compression_libs(NATIVE_LIBS)

if (NOT CLR_CMAKE_TARGET_TVOS AND NOT CLR_CMAKE_TARGET_ANDROID AND NOT CLR_CMAKE_TARGET_BROWSER) # no gssapi on tvOS, see https://developer.apple.com/documentation/gss
# Additional requirements for System.Net.Security.Native
include(${CLR_SRC_NATIVE_DIR}/libs/System.Net.Security.Native/extra_libs.cmake)
Expand Down
1 change: 1 addition & 0 deletions src/native/corehost/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if /i [%1] == [rootDir] (set __rootDir=%2&&shift&&shift&goto Arg_Loop)
if /i [%1] == [msbuild] (set __Ninja=0)
if /i [%1] == [runtimeflavor] (set __RuntimeFlavor=%2&&shift&&shift&goto Arg_Loop)
if /i [%1] == [runtimeconfiguration] (set __RuntimeConfiguration=%2&&shift&&shift&goto Arg_Loop)
if /i [%1] == [-cmakeargs] (set __ExtraCmakeParams=%__ExtraCmakeParams% %2&shift&shift&goto Arg_Loop)
if /i [%1] == [-fsanitize] ( set __ExtraCmakeParams=%__ExtraCmakeParams% "-DCLR_CMAKE_ENABLE_SANITIZERS=%2"&&shift&&shift&goto Arg_Loop)

shift
Expand Down
Loading
Loading