Skip to content

support building mono on x64 as it gets built on s390x #62440

@tmds

Description

@tmds

I'd like to build this repo using mono as runtime similar to how it is built on s390x.

The build script doesn't provide a way to do that.

The s390x case is specially handled using PrimaryRuntimeFlavor:

<PropertyGroup>
<PrimaryRuntimeFlavor>CoreCLR</PrimaryRuntimeFlavor>
<PrimaryRuntimeFlavor Condition="'$(TargetArchitecture)' == 's390x'">Mono</PrimaryRuntimeFlavor>
</PropertyGroup>

Then subsequent checking occurs as:

'$(RuntimeFlavor)' == '$(PrimaryRuntimeFlavor)')" -> coreCLR or mono on s390x
'$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)')" -> mono not on s390x

cc @ViktorHofer @uweigand @omajid @akoeplinger

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions