Skip to content

Commit 21bcd00

Browse files
brad0korli
andauthored
[clang-shlib] Fix linking libclang-cpp on Haiku (#156401)
Haiku requires linking in libnetwork. Co-authored-by: Jérôme Duval <[email protected]>
1 parent 03e66ae commit 21bcd00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/tools/clang-shlib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ if (CLANG_LINK_CLANG_DYLIB)
4141
set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN)
4242
endif()
4343

44+
if (HAIKU)
45+
list(APPEND _DEPS network)
46+
endif()
47+
4448
add_clang_library(clang-cpp
4549
SHARED
4650
${INSTALL_WITH_TOOLCHAIN}

0 commit comments

Comments
 (0)