Skip to content

Better handling of a library trimming #1610

@marek-safar

Description

@marek-safar

ILLinker does not have a good concept of a library trimming. The initial approach was made with -r assembly options but it's incomplete.

There is a conceptual problem because options -a and -r are not exclusive, one can use the same assembly or assemblies with both modes at the same time. We should probably break this expectation and allow only one mode at the same time. This would allow us to set different defaults in library mode which is used mostly for IL trimming only.

The list of settings which would be set differently in this mode (unless set manually)

  • --strip-link-attributes false
  • --strip-substitutions false
  • --strip-descriptors false
  • --disable-opt unusedinterfaces
  • --disable-opt overrideremoval
  • --disable-opt unusedtypechecks

@vitek-karas @sbomer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions