-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 dependency on lld optional #85667
Conversation
Tagging subscribers to this area: @hoyosjs Issue Detailsnull
|
This reverts commit e8a297b.
@@ -570,4 +569,28 @@ | |||
Condition="'$(_WillCLRTestProjectBuild)' == 'true' and '$(CLRTestKind)' == 'BuildAndRun'" | |||
DependsOnTargets="ComputeResolvedFilesToPublishList;LinkNative" /> | |||
|
|||
<Target Name="LocateNativeCompiler" |
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.
There seems to be a lot of duplication of this logic. Would it be possible to have this logic in a shared file under eng
and import it in all places that 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.
Yeah - I've been meaning to share this and other logic that is already duplicated. There are some subtle differences, so I wanted to see if I could get it working first.
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 like to work on the sharing in a follow-up if that sounds ok to you. This fix will unblock some other things I can work on in parallel.
This is no longer required with dotnet/runtime#85667, and will let us switch to the Ubuntu 22.04 images for the runtime-dev-innerloop runs.
Fixes #84934. This detects availability of lld similarly to how we do it for the native components in
init-compiler.sh
:runtime/eng/common/native/init-compiler.sh
Lines 130 to 132 in 34138a1
I tested this in ci (see third commit) by temporarily running the runtime-dev-innerloop pipeline on an Ubuntu 22.04 image I uploaded. After this goes in I will update the dotnet-buildtools-prereqs image to remove
lld
and then use it in runtime-dev-innerloop.