Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Consolidate LocateNativeCompiler target #103375
Consolidate LocateNativeCompiler target #103375
Changes from 2 commits
04f086a
9a97e5e
6297fdf
97a667f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally need to specify the
@rpath/
-prefixed name on macOS for libraries. Is that done somewhere else now? What is the output forotool -l
before and after?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to me like an avoidable duplicate:
runtime/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
Line 217 in 7b69459
Can we use it for all apple platforms? Or are there use-cases when we explicitly don't need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say we can. We would need to check with Xamarin workloads to ensure that it doesn't break anything.
Note that generally Xamarin workloads have an SDK code on the consumption side where it fixes up the paths with
install_name_tool
if they are wrong, so I don't expect it to break anything there. I am more concerned that the workload may also specify-install_name
on the library compilation side and it would collide if we add it in the NativeAOT linker args.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With 9a97e5e the behavior is:
SkipInstallName
<LinkerArg Include="-Wl,-install_name,@rpath/TheirName" />
type of thing specified in their project, TheirName takes precedence with SkipInstallName=trueWhat do you think?
cDAC (the project being modified) is currently only used for testing in the repo, which is working, so I think we can live with it without waiting for next SDK update which won't be long (10.0 alpha1).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @lambdageek
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM