Skip to content

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Sep 2, 2025

Haiku requires linking in libnetwork.

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Sep 2, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 2, 2025

@llvm/pr-subscribers-clang

Author: Brad Smith (brad0)

Changes

Haiku requires linking in libnetwork.


Full diff: https://github.com/llvm/llvm-project/pull/156401.diff

1 Files Affected:

  • (modified) clang/tools/clang-shlib/CMakeLists.txt (+4)
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.
@brad0 brad0 force-pushed the haiku_cmake_clang-shlib branch from fd2d05d to 2f560a0 Compare September 5, 2025 04:12
@brad0 brad0 requested a review from llvm-beanz September 5, 2025 05:22
@brad0
Copy link
Contributor Author

brad0 commented Sep 12, 2025

@llvm-beanz Ping.

1 similar comment
@brad0
Copy link
Contributor Author

brad0 commented Sep 21, 2025

@llvm-beanz Ping.

@brad0
Copy link
Contributor Author

brad0 commented Sep 24, 2025

cc @DavidSpickett

@DavidSpickett
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants