Skip to content

Package Native AOT C++ sources for separate compilation on customer machines #102586

Closed

Description

@agocke

In some cases, users might want to compile for platforms that .NET doesn't support. Providing the sources (and CMake build files) for external compilation would allow for broader platform builds without increased cost on the runtime side.

Activity

  1. ghost added
    needs-area-label
    on May 22, 2024
  2. added
    untriaged
    on May 22, 2024
  3. added and removed
    untriaged
    needs-area-label
    on May 22, 2024
  4. added this to the Future milestone on May 22, 2024
  5. dotnet-policy-service commented on May 22, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
    See info in area-owners.md if you want to be subscribed.

  6. jkoritzinsky commented on May 22, 2024

    @jkoritzinsky
    Member

    For this scenario, we should produce simple and straightforward CMake files that have the minimal information required to define the CMake targets necessary to build the libraries. Right now we have a decent amount of logic that's shared with the rest of the runtime repo (functions, shared definitions), and I don't think we want to ship our eng/native directory.

  7. MichalStrehovsky commented on May 23, 2024

    @MichalStrehovsky
    Member

    Is this a duplicate of #83611?

    I've looked at this in the past, and yeah, the shared CMake files don't make it easy to disconnect from our engineering system. But if we don't use the same files that we use to build the product, it's super easy to forget switches/ifdefs and end up with a different runtime, that could be different in very subtle ways. It also doesn't help that CoreLib relies on files we generate as part of native build and who knows if they could be different.

  8. jkotas commented on May 23, 2024

    @jkotas
    Member

    Yes, this is duplicate of #83611

  9. locked and limited conversation to collaborators on Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions