-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[C++] Add support for LLD #40400
Comments
Do we even need to add anything explicitly if this is the case? |
We need to pass |
Ah I see, I thought it had a setup like mold that pretends to be ld ^^ |
As I look at the linker logic I am struck that we could end up trying to use multiple linkers, I was thinking that we might add an option to choose the linker by name, and populate that from the boolean flags. If we want to keep it simple maybe just warn that multiple linkers were selected and that we will use X, where we would then need to determine the default if all, etc. I can put something together and let you both take a look. |
You're suggesting BTW, I think that we can drop support for |
Yes, just to ensure we only request one linker, or what I added with a default in an
Yeah? It does look a little overly complex, but I wasn't sure on the history there. |
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: #40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Issue resolved by pull request 40927 |
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: apache#40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: apache#40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: apache#40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: apache#40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
### Rationale for this change Add support for the LLD LLVM linker, it is faster than the default linker. ### What changes are included in this PR? Added `ARROW_USE_LLD` as a CMake option, test if GCC supports the flags and then set the linker flags if so when the option is enabled. ### Are these changes tested? When this is enabled then the libraries and tests will use the linker flag. ### Are there any user-facing changes? No * GitHub Issue: apache#40400 Authored-by: Marcus D. Hanwell <marcus@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Describe the enhancement requested
https://lld.llvm.org/
LLD is the LLVM Linker. It's faster than GNU ld.
Component(s)
C++
The text was updated successfully, but these errors were encountered: