Skip to content

Remove workaround for ResolveReadyToRunCompilers failing #24495

@rolfbjarne

Description

@rolfbjarne

Remove workaround for this issue once the fix has reached us: dotnet/runtime#122985

See:

<!-- TODO: Remove ResolveReadyToRunCompilers target -->
<!-- This shouldn't be necessary once we get https://github.com/dotnet/dotnet/pull/3754 -->
<Target Name="ResolveReadyToRunCompilers" Condition="'$(PublishReadyToRun)' == 'true' And '$(UseMonoRuntime)' != 'true'">
<PropertyGroup>
<_Crossgen2Path Condition="'$(Crossgen2Path)' != ''">$(Crossgen2Path)</_Crossgen2Path>
<_FlattenedCrossgen2Packs>@(ResolvedCrossgen2Pack->'%(PackageDirectory)')</_FlattenedCrossgen2Packs>
<_Crossgen2Path Condition="'$(Crossgen2Path)' == ''">$(_FlattenedCrossgen2Packs)/tools/crossgen2</_Crossgen2Path>
<_TargetArch>$(RuntimeIdentifier.Split('-')[1])</_TargetArch>
<_TargetOS>$(RuntimeIdentifier.Split('-')[0])</_TargetOS>
</PropertyGroup>
<ItemGroup>
<Crossgen2Tool Include="$(_Crossgen2Path)"
TargetArch="$(_TargetArch)"
TargetOS="$(_TargetOS)"
PerfmapFormatVersion="$(PublishReadyToRunPerfmapFormatVersion)"/>
</ItemGroup>
<Message Text="Using crossgen2: $(_Crossgen2Path)" Importance="high" />
<Message Text=" RuntimeIdentifier: $(RuntimeIdentifier)" Importance="high" />
<Message Text=" TargetArch: $(_TargetArch)" Importance="high" />
<Message Text=" TargetOS: $(_TargetOS)" Importance="high" />
<Error Condition="!Exists('$(_Crossgen2Path)')" Text="The crossgen2 executable '$(_Crossgen2Path)' does not exist." />
</Target>
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA feature to be implemented

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions