-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[clang-shlib] Fix linking libclang-cpp on Haiku #156401
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
Conversation
|
@llvm/pr-subscribers-clang Author: Brad Smith (brad0) ChangesHaiku requires linking in libnetwork. Full diff: https://github.com/llvm/llvm-project/pull/156401.diff 1 Files Affected:
diff --git a/clang/tools/clang-shlib/CMakeLists.txt b/clang/tools/clang-shlib/CMakeLists.txt
index 945076e1ad810..a4d0aa5779a7e 100644
--- a/clang/tools/clang-shlib/CMakeLists.txt
+++ b/clang/tools/clang-shlib/CMakeLists.txt
@@ -41,6 +41,10 @@ if (CLANG_LINK_CLANG_DYLIB)
set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN)
endif()
+if (HAIKU)
+ list(APPEND _DEPS network)
+endif()
+
add_clang_library(clang-cpp
SHARED
${INSTALL_WITH_TOOLCHAIN}
|
Haiku requires linking in libnetwork.
fd2d05d to
2f560a0
Compare
|
@llvm-beanz Ping. |
1 similar comment
|
@llvm-beanz Ping. |
|
This is required because libclang includes some component that accesses the network I assume. Like some part of clangd? This looks fine to me just want to confirm that it's clearly intentionally needed not some random function we used accidentally. |
See haikuports/haikuports#11972 (comment) for involved symbols. |
DavidSpickett
left a comment
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.
LGTM.
Haiku requires linking in libnetwork. Co-authored-by: Jérôme Duval <[email protected]>
Haiku requires linking in libnetwork. Co-authored-by: Jérôme Duval <[email protected]> (cherry picked from commit 21bcd00)
Haiku requires linking in libnetwork. Co-authored-by: Jérôme Duval <[email protected]>
Haiku requires linking in libnetwork.