Skip to content

[linker] Add the custom attributes removal step as an configurable optimization. Fix #3655#6049

Merged
spouliot merged 3 commits intodotnet:masterfrom
spouliot:ca-removal-opt
May 16, 2019
Merged

[linker] Add the custom attributes removal step as an configurable optimization. Fix #3655#6049
spouliot merged 3 commits intodotnet:masterfrom
spouliot:ca-removal-opt

Conversation

@spouliot
Copy link
Copy Markdown
Contributor

This allows the optimization to be disabled in cases where one, or
many, a custom attribute(s) are required by the application at runtime.

While not ideal disabling this single step is much better than disabling
linking for the whole application.

A better approach is described in #6048
but this configuration optimization makes sense independently of it.

Fix #3655

…timization. Fix dotnet#3655

This allows the optimization to be disabled in cases where one, or
many, a custom attribute(s) are required by the application at runtime.

While not ideal disabling this single step is much better than disabling
linking for the whole application.

A better approach is described in dotnet#6048
but this configuration optimization makes sense independently of it.

Fix dotnet#3655
Copy link
Copy Markdown
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

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

Just one minor issue 👍

Comment thread docs/website/optimizations.md Outdated
Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
@monojenkins
Copy link
Copy Markdown
Contributor

Build failure
Build failed or was aborted

Build succeeded
API Diff (from stable)

@monojenkins
Copy link
Copy Markdown
Contributor

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

2 tests failed, 0 tests skipped, 99 tests passed.

Failed tests

  • mmptest/macOS/NonSystem: Failed (Execution failed with exit code 2)
  • MTouch tests/NUnit: Failed (Execution failed with exit code 2)

@monojenkins
Copy link
Copy Markdown
Contributor

Build success
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
Test run succeeded

@spouliot
Copy link
Copy Markdown
Contributor Author

@monojenkins backport to d16-2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Xamarin.iOS linker removes assembly attributes, but large & useful libraries (e.g. EF Core 2.0) rely on such being preserved

4 participants