Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a custom flag to disable marking of copy assemblies #2370

Merged
merged 3 commits into from
Nov 15, 2021

Conversation

vitek-karas
Copy link
Member

For #2089

Enabled by --custom-data DisableMarkingOfCopyAssemblies=true on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.

/cc @rolfbjarne

@vitek-karas vitek-karas added this to the .NET 6.0 milestone Nov 15, 2021
@vitek-karas vitek-karas requested a review from sbomer November 15, 2021 17:01
@vitek-karas vitek-karas self-assigned this Nov 15, 2021
@vitek-karas
Copy link
Member Author

@agocke for triage - this should go into 6.0.2xx and maybe potentially even sooner depending on mono needs.

Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,9 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left-over file I think

@vitek-karas
Copy link
Member Author

@agocke - can you please confirm that it's OK to merge this to 6.0.2xx? (since it's kind of the first real linker fix for servicing).

@agocke
Copy link
Member

agocke commented Nov 15, 2021

LGTM

@vitek-karas vitek-karas merged commit c90ed0a into dotnet:main Nov 15, 2021
@vitek-karas vitek-karas deleted the DisableMarkingOfCopyAssemblies branch November 15, 2021 19:14
vitek-karas added a commit to vitek-karas/linker that referenced this pull request Dec 10, 2021
Enabled by `--custom-data DisableMarkingOfCopyAssemblies=true` on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.
agocke pushed a commit that referenced this pull request Jan 6, 2022
Enabled by `--custom-data DisableMarkingOfCopyAssemblies=true` on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
…r#2370)

Enabled by `--custom-data DisableMarkingOfCopyAssemblies=true` on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.

Commit migrated from dotnet/linker@c90ed0a
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
…r#2370) (dotnet/linker#2437)

Enabled by `--custom-data DisableMarkingOfCopyAssemblies=true` on the command line. Assumes that ALL assemblies on the input are in "copy" action (it doesn't validate this fact).

It disables marking basically fully - linker will go over all assemblies, and process them in "copy" mode (copy the original file over) and will call all the custom steps and so on, but it will do no marking (or very little, depends on descriptors and such which this doesn't disable).

This is intentionally non-discoverable feature, to be used only by the mono AOT toolchain.

Commit migrated from dotnet/linker@e28b7f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants