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

Make llvm-objcopy preferred; no required #72208

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

am11
Copy link
Member

@am11 am11 commented Jul 14, 2022

Fix #72155

The llvm package on Debian distros installs llvm-objcopy, but the NativeAOT prerequisite doc does not require llvm package (in addition to clang): https://docs.microsoft.com/en-us/dotnet/core/deploying/native-aot#prerequisites

This PR makes llvm-objcoy preferred but not required when clang is used. It will gracefully fallback to binutils objcopy, which gets installed with clang package (at least on Debian distros).

@am11 am11 requested a review from MichalStrehovsky as a code owner July 14, 2022 18:51
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jul 14, 2022
@am11 am11 requested a review from jkotas July 14, 2022 18:51
@am11 am11 force-pushed the feature/nativeaot/symbol-stripping branch 3 times, most recently from 3bebef1 to 1e8389e Compare July 14, 2022 19:08
@am11 am11 force-pushed the feature/nativeaot/symbol-stripping branch from 1e8389e to 0dd5d02 Compare July 14, 2022 19:28
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thank you!

@jkotas jkotas merged commit 46119f1 into dotnet:main Jul 14, 2022
MichalStrehovsky added a commit to dotnet/sdk that referenced this pull request Jul 19, 2022
This should not be needed after dotnet/runtime#72208. Let's test the mainstream scenario.

Also flipping the if check to prepare for macOS testing at some point.
MichalStrehovsky added a commit to dotnet/sdk that referenced this pull request Jul 20, 2022
This should not be needed after dotnet/runtime#72208. Let's test the mainstream scenario.

Also flipping the if check to prepare for macOS testing at some point.
@am11 am11 deleted the feature/nativeaot/symbol-stripping branch July 24, 2022 07:28
@ghost ghost locked as resolved and limited conversation to collaborators Aug 23, 2022
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.

[NativeAOT] llvm-objcopy is missing in default build pre-requisities
2 participants