Skip to content

Commit

Permalink
Disable cdacreader project in source-build (#100807)
Browse files Browse the repository at this point in the history
NativeAOT doesn't work in source-build so we need to disable the project there to avoid restore errors.
See dotnet/installer#19333 (comment)
  • Loading branch information
akoeplinger authored Apr 9, 2024
1 parent 4c9db8a commit 22d1288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/native/managed/compile-native.proj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<!-- NativeAOT doesn't support cross-OS compilation. disable for crossdac-->
<SupportsNativeAotComponents Condition="'$(SupportsNativeAotComponents)' == '' and '$(HostOS)' != '$(TargetOS)'">false</SupportsNativeAotComponents>
<!-- unsupported targets -->
<SupportsNativeAotComponents Condition="'$(SupportsNativeAotComponents)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</SupportsNativeAotComponents>
<SupportsNativeAotComponents Condition="'$(SupportsNativeAotComponents)' == '' and ('$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'armel' or '$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'riscv64')">false</SupportsNativeAotComponents>
<SupportsNativeAotComponents Condition="'$(SupportsNativeAotComponents)' == '' and ('$(TargetsWindows)' == 'true' or '$(TargetsOSX)' == 'true' or ('$(TargetsLinux)' == 'true' and '$(TargetsAndroid)' != 'true' and '$(TargetsLinuxMusl)' != 'true'))">true</SupportsNativeAotComponents>
<SupportsNativeAotComponents Condition="'$(SupportsNativeAotComponents)' == ''">false</SupportsNativeAotComponents>
Expand Down

0 comments on commit 22d1288

Please sign in to comment.