-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Use embedded LLD for linking #1837
Comments
LLD is still buggy on Mac: https://bugs.llvm.org/show_bug.cgi?id=32376 |
Hey guys, slowly but surely returning to this project: I have implemented this and just need to test it on Windows. This issue can be assigned to me and I make sure to submit a pull request soon. Looks good on OSX, Linux and BSD! |
Hey @sblessing! Welcome back. I've sent you an invite to the org so you can be assigned this ticket. Once you accept, write back here and I'll assign you. |
Hello, due to ld.gold being rather buggy on musl (it just plain crashes if built without -fPIE: |
Yes, PIE is support already @Cogitri. If you pass |
Hm, I already build ponyc with that option and just tried with |
We build and release for alpine all the time, so I'm not sure what issue you are running into. I suggest checking https://github.com/ponylang/ponyc/blob/master/.dockerhub/alpine/Dockerfile. Beyond that, please open a new issue as this is off topic for this issue. |
Ah, sorry, I felt this was related to this due to using LLD as linker would fix this. I'll open a new issue. |
No need to apologize @Cogitri. We have veered off from LLD though. |
I do have a running implementation with LLD. Unfortunately LLD is not yet where we need it to be and, and using LLD wouldn't remove vcvars.* :( But I do think that LLD 9.0.0 looks promising. |
@sblessing any update on LLD 9.0.0? |
@SeanTAllen Yes. I do have various examples running and so far it looks good. Do we need an RFC to eventually get this merged (and potentially at first have this as an experimental ponyc option) |
I think an RFC would make sense to clarify how/if to expose it to users of |
I'm looking to get this moving. See more in Zulip: |
https://lld.llvm.org
This would eliminate the compiler's dependence on a C compiler for linking on Linux and on
link.exe
for linking on Windows.LLD could be used as a library rather than needing to shell out to it.
The text was updated successfully, but these errors were encountered: