Skip to content

Commit cceab9c

Browse files
committed
Merge in 'release/6.0' changes
2 parents 6bc9982 + a5a0004 commit cceab9c

File tree

15 files changed

+1968
-70
lines changed

15 files changed

+1968
-70
lines changed

eng/packaging.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<DisablePackageBaselineValidation Condition="'$(DotNetBuildFromSource)' == 'true'">true</DisablePackageBaselineValidation>
1313
<PackageValidationBaselineVersion Condition="'$(PackageValidationBaselineVersion)' == ''">6.0.0</PackageValidationBaselineVersion>
1414
<!-- PackDependsOn is the right hook in a targets file if the NuGet.Build.Tasks.Pack nuget package is used, otherwise
15-
BeforePack must be used. Setting both to ensure that we are always running before other targets. -->
15+
BeforePack must be used. Setting both to ensure that we are always running before other targets. -->
1616
<PackDependsOn>AddNETStandardCompatErrorFileForPackaging;IncludeAnalyzersInPackage;$(PackDependsOn)</PackDependsOn>
1717
<BeforePack>AddNETStandardCompatErrorFileForPackaging;IncludeAnalyzersInPackage;$(BeforePack)</BeforePack>
1818
<SymbolPackageOutputPath>$(PackageOutputPath)</SymbolPackageOutputPath>
1919
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);AddRuntimeSpecificFilesToPackage;IncludePrivateProjectReferencesWithPackAttributeInPackage</TargetsForTfmSpecificContentInPackage>
2020
<TargetsForTfmSpecificDebugSymbolsInPackage>$(TargetsForTfmSpecificDebugSymbolsInPackage);AddRuntimeSpecificSymbolToPackage</TargetsForTfmSpecificDebugSymbolsInPackage>
21-
<IncludeBuildOutput Condition="'$(TargetsAnyOS)' != 'true' or '$(ExcludeFromPackage)' == 'true'">false</IncludeBuildOutput>
21+
<IncludeBuildOutput Condition="'$(TargetsAnyOS)' != 'true' or '$(ExcludeFromPackage)' == 'true'">false</IncludeBuildOutput>
2222
<!-- Don't include target platform specific dependencies, since we use the target platform to represent RIDs instead -->
2323
<SuppressDependenciesWhenPacking Condition="'$(ExcludeFromPackage)' == 'true' or ('$(TargetsAnyOS)' != 'true' and $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0')))">true</SuppressDependenciesWhenPacking>
2424
<PackageDesignerMarkerFile>$(MSBuildThisFileDirectory)useSharedDesignerContext.txt</PackageDesignerMarkerFile>
@@ -54,7 +54,7 @@
5454
<Version Condition="'$(VersionSuffix)' != ''">$(Version)-$(VersionSuffix)</Version>
5555
<_IsWindowsDesktopApp Condition="$(WindowsDesktopCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsWindowsDesktopApp>
5656
<_IsAspNetCoreApp Condition="$(AspNetCoreAppLibrary.Contains('$(AssemblyName);'))">true</_IsAspNetCoreApp>
57-
<_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack>
57+
<_AssemblyInTargetingPack Condition="('$(IsNETCoreAppSrc)' == 'true' or '$(IsNetCoreAppRef)' == 'true' or '$(_IsAspNetCoreApp)' == 'true' or '$(_IsWindowsDesktopApp)' == 'true') and '$(TargetFrameworkIdentifier)' != '.NETFramework'">true</_AssemblyInTargetingPack>
5858
<!-- Assembly version do not get updated in non-netfx ref pack assemblies. -->
5959
<AssemblyVersion Condition="'$(_AssemblyInTargetingPack)' != 'true'">$(MajorVersion).$(MinorVersion).0.$(ServicingVersion)</AssemblyVersion>
6060
</PropertyGroup>
@@ -276,7 +276,7 @@
276276
</ItemGroup>
277277
</Target>
278278

279-
<Target Name="ValidateAssemblyVersionsInRefPack"
279+
<Target Name="ValidateAssemblyVersionsInRefPack"
280280
Condition="'$(SkipValidateAssemblyVersion)' != 'true' and '$(_AssemblyInTargetingPack)' == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'"
281281
AfterTargets="CoreCompile" >
282282
<Error Condition="'$(AssemblyVersion)' != '$(LastReleasedStableAssemblyVersion)'" Text="AssemblyVersion should match last released assembly version $(LastReleasedStableAssemblyVersion)" />

src/libraries/Native/AnyOS/zlib/pal_zlib.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
#ifdef _WIN32
99
#define c_static_assert(e) static_assert((e),"")
10+
#endif
11+
12+
#if defined(_WIN32) || defined(__EMSCRIPTEN__)
1013
#include "../../Windows/System.IO.Compression.Native/zlib/zlib.h"
1114
#else
1215
#include "pal_utilities.h"

src/libraries/Native/Unix/System.IO.Compression.Native/CMakeLists.txt

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
project(System.IO.Compression.Native C)
22

3-
if (CLR_CMAKE_TARGET_BROWSER)
4-
add_definitions(-s USE_ZLIB)
5-
endif()
6-
73
include(${CMAKE_CURRENT_LIST_DIR}/extra_libs.cmake)
84

95
set(NATIVE_LIBS_EXTRA)
@@ -13,7 +9,21 @@ set(NATIVECOMPRESSION_SOURCES
139
../../AnyOS/zlib/pal_zlib.c
1410
)
1511

16-
if (NOT CLR_CMAKE_TARGET_BROWSER)
12+
if (CLR_CMAKE_TARGET_BROWSER)
13+
set (NATIVECOMPRESSION_SOURCES
14+
${NATIVECOMPRESSION_SOURCES}
15+
../../Windows/System.IO.Compression.Native/zlib/adler32.c
16+
../../Windows/System.IO.Compression.Native/zlib/compress.c
17+
../../Windows/System.IO.Compression.Native/zlib/crc32.c
18+
../../Windows/System.IO.Compression.Native/zlib/deflate.c
19+
../../Windows/System.IO.Compression.Native/zlib/inffast.c
20+
../../Windows/System.IO.Compression.Native/zlib/inflate.c
21+
../../Windows/System.IO.Compression.Native/zlib/inftrees.c
22+
../../Windows/System.IO.Compression.Native/zlib/trees.c
23+
../../Windows/System.IO.Compression.Native/zlib/zutil.c
24+
)
25+
set_source_files_properties(${NATIVECOMPRESSION_SOURCES} PROPERTIES COMPILE_FLAGS -Wno-implicit-fallthrough)
26+
else()
1727
#Include Brotli include files
1828
include_directories("../../AnyOS/brotli/include")
1929

src/libraries/System.Private.CoreLib/src/Resources/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@
528528
<data name="Arg_MustBeInterface" xml:space="preserve">
529529
<value>Type passed must be an interface.</value>
530530
</data>
531+
<data name="Arg_MustBeNFloat" xml:space="preserve">
532+
<value>Object must be of type NFloat.</value>
533+
</data>
531534
<data name="Arg_MustBePointer" xml:space="preserve">
532535
<value>Type must be a Pointer.</value>
533536
</data>

0 commit comments

Comments
 (0)