Skip to content

Commit b0e9b73

Browse files
authored
[cDAC] fix condition to only link in native unwinders on Windows x64 (#112999)
Unblocks official build as it was failing on win-arm64.
1 parent dfa71ee commit b0e9b73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/native/managed/cdacreader/src/cdacreader.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
<ItemGroup>
3535
<!-- TODO: Link libraries on non-windows platforms. -->
3636
<!-- https://github.com/dotnet/runtime/issues/112416 -->
37-
<DirectPInvoke Include="unwinder_cdac_amd64" />
38-
<NativeLibrary Include="$(CoreCLRArtifactsPath)cdaclibs\unwinder_cdac_amd64.lib" Condition="'$(TargetsWindows)' == 'true'" />
39-
<DirectPInvoke Include="unwinder_cdac_arm64" />
40-
<NativeLibrary Include="$(CoreCLRArtifactsPath)cdaclibs\unwinder_cdac_arm64.lib" Condition="'$(TargetsWindows)' == 'true'" />
37+
<DirectPInvoke Include="unwinder_cdac_amd64" Condition="'$(TargetsWindows)' == 'true' and '$(TargetArchitecture)' == 'x64'"/>
38+
<NativeLibrary Include="$(CoreCLRArtifactsPath)cdaclibs\unwinder_cdac_amd64.lib" Condition="'$(TargetsWindows)' == 'true' and '$(TargetArchitecture)' == 'x64'" />
39+
<DirectPInvoke Include="unwinder_cdac_arm64" Condition="'$(TargetsWindows)' == 'true' and '$(TargetArchitecture)' == 'x64'"/>
40+
<NativeLibrary Include="$(CoreCLRArtifactsPath)cdaclibs\unwinder_cdac_arm64.lib" Condition="'$(TargetsWindows)' == 'true' and '$(TargetArchitecture)' == 'x64'" />
4141
</ItemGroup>
4242

4343
<ItemGroup>

0 commit comments

Comments
 (0)