-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add set of attributes that can be trimmed on NAOT (#88718)
These are papercuts but since we have the mechanism for this...
- Loading branch information
1 parent
08de046
commit d08eff5
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/coreclr/nativeaot/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<linker> | ||
|
||
<!-- Internal implementation details that are always fine to strip --> | ||
<assembly fullname="System.Private.CoreLib"> | ||
<type fullname="System.Runtime.CompilerServices.IntrinsicAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Runtime.CompilerServices.ForceDictionaryLookupsAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Runtime.CompilerServices.EagerStaticClassConstructionAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
</assembly> | ||
|
||
<assembly fullname="*"> | ||
<!-- Internal attributes shared as implementation, so they could be in any assembly --> | ||
<type fullname="System.Runtime.Versioning.NonVersionableAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
</assembly> | ||
|
||
<!-- Public attributes that need to be interpreted by the compiler, fine to strip afterwards --> | ||
<assembly fullname="System.Private.CoreLib" feature="System.AggressiveAttributeTrimming" featurevalue="true"> | ||
<type fullname="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Runtime.CompilerServices.CompilationRelaxationsAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Runtime.CompilerServices.RuntimeCompatibilityAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
</assembly> | ||
|
||
</linker> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters