-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 during runtime build #84934
Comments
Tagging subscribers to this area: @hoyosjs Issue DetailsFrom @am11 in #84794 (comment):
The ability to compile with gcc+binutils is tested by the gcc product build leg, but this doesn't cover test builds. Conditions similar to
That still leaves the scenario of building with clang+bfd (where clang and binutils are installed, but lld isn't). From #84794 (comment):
When using clang as the linker driver, the NativeAot targets either explicitly use
|
This should also be checked by runtime-dev-innerloop. Do we run in a container that has |
It currently runs in the mariner images, but I think we should move it to something more representative - maybe Ubuntu 20.04 without lld. |
I would suggest 22.04 (latest LTS), but yeah, agreed. |
From @am11 in #84794 (comment):
The ability to compile with gcc+binutils is tested by the gcc product build leg, but this doesn't cover test builds. Conditions similar to
runtime/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj
Line 53 in dbd4233
That still leaves the scenario of building with clang+bfd (where clang and binutils are installed, but lld isn't). From #84794 (comment):
When using clang as the linker driver, the NativeAot targets either explicitly use
bfd
(the default), or can be made to uselld
viaLinkerFlavor
. So the fix for this would be to perform detection oflld
when using the clang compiler, and setLinkerFlavor
based on the result.The text was updated successfully, but these errors were encountered: