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 support for llvm linker (lld) #80613

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

am11
Copy link
Member

@am11 am11 commented Jan 13, 2023

Usage:

$ dotnet publish -p:PublishAot=true -p:UseLLVMLinker=true

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 13, 2023
@ghost
Copy link

ghost commented Jan 13, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Usage:

$ dotnet publish -p:PublishAot=true -p:UseLLVMLinker=true
Author: am11
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@am11 am11 requested review from janvorli and jkotas January 13, 2023 14:03
@am11 am11 force-pushed the feature/nativeaot/llvm-linker branch from 8e60117 to 8f489de Compare January 13, 2023 14:28
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@am11
Copy link
Member Author

am11 commented Jan 14, 2023

crossgen2 publishing on linux-arm64 with Release configuration:

Properties Size bytes / MB
-p:'UseLLVMLinker=false;StripSymbols=false' 63946624 / 62
-p:'UseLLVMLinker=false;StripSymbols=true' 16416992 / 16
-p:'UseLLVMLinker=true;StripSymbols=false' 70419304 / 68
-p:'UseLLVMLinker=true;StripSymbols=true' 16705872 / 16

sizes are still better with GNU ld (which is default)

@jkotas jkotas merged commit d0fcd62 into dotnet:main Jan 14, 2023
@am11 am11 deleted the feature/nativeaot/llvm-linker branch January 22, 2023 06:17
@ghost ghost locked as resolved and limited conversation to collaborators Feb 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants