Skip to content

Eliminate duplication with shipping ILLink targets #31359

Open

Description

@ericstj

We should avoid defining our own ILLink targets and instead extend/configure the shipping ones. We still have a lot that is unique to corefx (trimming libraries not apps, diffing the result) but we can avoid bugs by sharing the invokation logic from the official targets. See dotnet/corefx#42266

/cc @sbomer @ViktorHofer @eiriktsarpalis

Activity

  1. transferred this issue fromdotnet/corefxon Feb 1, 2020
  2. added this to the 5.0 milestone on Feb 1, 2020
  3. added
    untriaged
    on Feb 23, 2020
  4. modified the milestones: 5.0.0, Future on Jul 8, 2020
  5. removed
    untriaged
    on Jul 8, 2020
  6. ViktorHofer commented on May 10, 2022

    @ViktorHofer
    Member

    @ericstj do you still think this is feasible given that we do extensive ILLink testing in sfx.proj and in oob.proj in addition to us running the linker in library mode over our compiled assemblies?

    Since this issue was opened, the illink.targets logic grew as it now also handles suppression files and supports the above mentioned cases.

  7. added
    needs-author-action
    on May 10, 2022
  8. ericstj commented on May 10, 2022

    @ericstj
    MemberAuthor

    I'm still do not like maintaining a copy of the target. It's ok to have a targets file to contain all of our common customizations, but we should avoid duplicating the target itself. We don't keep a copy of the CoreCompile target. Our customizations should be seen as a signal of things users might want to control in their linker usage. @eerhardt @vitek-karas @sbomer how feasible would it be to remove the customization here and rely on in-build functionality.
    https://github.com/dotnet/runtime/blob/35f66ed7cb42a3fbcc2c56604c31f8a64dbe119b/eng/illink.targets

  9. ghost added
    needs-further-triage
    on May 10, 2022
  10. ghost removed
    needs-author-action
    on May 10, 2022
  11. sbomer commented on May 10, 2022

    @sbomer
    Member

    I don't see any big problems with it at first glance. It will require a little care to make sure we don't accidentally pass some unwanted options for our use case. We use the linker in a configuration that we don't consider a customer scenario ("library-mode" trimming), and it's pretty different from what the SDK does, but I agree that we should see this as a signal of what users might want to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-librariesneeds-further-triage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions