-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-37410: [C++][Gandiva] Add support for using LLVM shared library #37412
Conversation
|
@github-actions crossbow submit java-jars -g wheel |
Revision: 5117655 Submitted crossbow builds: ursacomputing/crossbow @ actions-63e615699a |
5117655
to
f42ae12
Compare
f42ae12
to
780357c
Compare
@github-actions crossbow submit -g cpp |
Revision: 780357c Submitted crossbow builds: ursacomputing/crossbow @ actions-3d4f488389 |
I'll merge this in this week if nobody objects this. |
+1. Thanks! |
if(MSVC) | ||
# It seems that conda's llvmdev for Windows doesn't provide shared | ||
# library. | ||
set(ARROW_LLVM_USE_SHARED_DEFAULT OFF) |
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.
Hmm, I don't think we should change this for conda. Instead, conda users on Windows will have to explicitly pass -DARROW_LLVM_USE_SHARED=OFF
.
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.
It seems that LLVM itself doesn't support shared library with MSVC: https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-shlib/CMakeLists.txt#L14-L16
@github-actions crossbow submit -g linux |
Revision: 52caff9 Submitted crossbow builds: ursacomputing/crossbow @ actions-e8c648a76a |
+1 |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 3ad2d0c. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
…ary (apache#37412) ### Rationale for this change Gandiva always links LLVM statically. But we can use LLVM shared library instead to reduce `libgandiva.so` size. ### What changes are included in this PR? Add `ARROW_LLVM_USE_SHARED` like other dependencies. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. This has a backward incompatible change. LLVM shared library not static libraries is used by default. If you want to use LLVM static libraries, you need to specify `-DARROW_LLVM_USE_SHARED=OFF` or `-DARROW_DEPENDENCY_USE_SHARED=OFF` explicitly. * Closes: apache#37410 Lead-authored-by: Sutou Kouhei <kou@clear-code.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…ary (apache#37412) ### Rationale for this change Gandiva always links LLVM statically. But we can use LLVM shared library instead to reduce `libgandiva.so` size. ### What changes are included in this PR? Add `ARROW_LLVM_USE_SHARED` like other dependencies. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. This has a backward incompatible change. LLVM shared library not static libraries is used by default. If you want to use LLVM static libraries, you need to specify `-DARROW_LLVM_USE_SHARED=OFF` or `-DARROW_DEPENDENCY_USE_SHARED=OFF` explicitly. * Closes: apache#37410 Lead-authored-by: Sutou Kouhei <kou@clear-code.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
Gandiva always links LLVM statically. But we can use LLVM shared library instead to reduce
libgandiva.so
size.What changes are included in this PR?
Add
ARROW_LLVM_USE_SHARED
like other dependencies.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.
This has a backward incompatible change. LLVM shared library not static libraries is used by default. If you want to use LLVM static libraries, you need to specify
-DARROW_LLVM_USE_SHARED=OFF
or-DARROW_DEPENDENCY_USE_SHARED=OFF
explicitly.