| 
97 | 97 |       <PreprocessorDefinitions>%(PreprocessorDefinitions);ZLIB_COMPAT;WITH_GZFILEOP;NO_FSEEKO;HAVE_BUILTIN_ASSUME_ALIGNED;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;</PreprocessorDefinitions>  | 
98 | 98 |       <PreprocessorDefinitions Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'">%(PreprocessorDefinitions);X86_FEATURES;X86_HAVE_XSAVE_INTRIN;X86_SSE2;X86_SSSE3;X86_SSE42;X86_PCLMULQDQ_CRC;X86_AVX2;X86_AVX512;X86_AVX512VNNI;X86_VPCLMULQDQ_CRC</PreprocessorDefinitions>  | 
99 | 99 |       <PreprocessorDefinitions Condition="$(Configuration) == 'Debug'">%(PreprocessorDefinitions);ZLIB_DEBUG</PreprocessorDefinitions>  | 
 | 100 | +      <PreprocessorDefinitions Condition="$(PlatformToolset) == 'ClangCL'">%(PreprocessorDefinitions);HAVE_BUILTIN_CTZ</PreprocessorDefinitions>  | 
100 | 101 |       <EnableEnhancedInstructionSet Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'">AdvancedVectorExtensions2</EnableEnhancedInstructionSet>  | 
101 | 102 |     </ClCompile>  | 
102 | 103 |   </ItemDefinitionGroup>  | 
 | 
141 | 142 |     <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_sse2.c" />  | 
142 | 143 |     <ClCompile Include="$(zlibNgDir)\arch\x86\compare256_sse2.c" />  | 
143 | 144 |     <ClCompile Include="$(zlibNgDir)\arch\x86\slide_hash_sse2.c" />  | 
144 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_ssse3.c" />  | 
145 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_ssse3.c" />  | 
146 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_sse42.c" />  | 
147 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\crc32_pclmulqdq.c" />  | 
148 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\slide_hash_avx2.c" />  | 
149 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_avx2.c" />  | 
150 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\compare256_avx2.c" />  | 
151 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx2.c" />  | 
152 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx512.c" />  | 
153 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_avx512.c" />  | 
154 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx512_vnni.c" />  | 
155 |  | -    <ClCompile Include="$(zlibNgDir)\arch\x86\crc32_vpclmulqdq.c" />  | 
 | 145 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_ssse3.c">  | 
 | 146 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mssse3</AdditionalOptions>  | 
 | 147 | +    </ClCompile>  | 
 | 148 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_ssse3.c">  | 
 | 149 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mssse3</AdditionalOptions>  | 
 | 150 | +    </ClCompile>  | 
 | 151 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_sse42.c">  | 
 | 152 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mssse3</AdditionalOptions>  | 
 | 153 | +    </ClCompile>  | 
 | 154 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\crc32_pclmulqdq.c">  | 
 | 155 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mssse3 -mpclmul</AdditionalOptions>  | 
 | 156 | +    </ClCompile>  | 
 | 157 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\slide_hash_avx2.c">  | 
 | 158 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx2</AdditionalOptions>  | 
 | 159 | +    </ClCompile>  | 
 | 160 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_avx2.c">  | 
 | 161 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx2</AdditionalOptions>  | 
 | 162 | +    </ClCompile>  | 
 | 163 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\compare256_avx2.c">  | 
 | 164 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx2</AdditionalOptions>  | 
 | 165 | +    </ClCompile>  | 
 | 166 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx2.c">  | 
 | 167 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx2</AdditionalOptions>  | 
 | 168 | +    </ClCompile>  | 
 | 169 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx512.c">  | 
 | 170 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx512bw</AdditionalOptions>  | 
 | 171 | +    </ClCompile>  | 
 | 172 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\chunkset_avx512.c">  | 
 | 173 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx512bw -mavx512vl -mbmi2</AdditionalOptions>  | 
 | 174 | +    </ClCompile>  | 
 | 175 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\adler32_avx512_vnni.c">  | 
 | 176 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx512bw -mavx512vl  -mavx512vnni</AdditionalOptions>  | 
 | 177 | +    </ClCompile>  | 
 | 178 | +    <ClCompile Include="$(zlibNgDir)\arch\x86\crc32_vpclmulqdq.c">  | 
 | 179 | +      <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">%(AdditionalOptions) -mavx512f -mvpclmulqdq</AdditionalOptions>  | 
 | 180 | +    </ClCompile>  | 
156 | 181 |   </ItemGroup>  | 
157 | 182 |   <ItemGroup>  | 
158 | 183 |     <ClInclude Include="..\PC\zconf.h" />  | 
 | 
0 commit comments