https://github.com/bala-bhargav updated 
https://github.com/llvm/llvm-project/pull/178455

>From 32f11a5886e6a7b400a8bc3b765a6cd4d02f0c39 Mon Sep 17 00:00:00 2001
From: bala-bhargav <[email protected]>
Date: Wed, 28 Jan 2026 21:41:53 +0530
Subject: [PATCH] [clang][unittests] Fix linker error for DirectoryWatcherTest
 with CLANG_LINK_CLANG_DYLIB

Move clangDirectoryWatcher from LINK_LIBS to CLANG_LIBS so it gets replaced by 
clang-cpp when building with CLANG_LINK_CLANG_DYLIB=ON.

Fixes #178302
---
 clang/unittests/DirectoryWatcher/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clang/unittests/DirectoryWatcher/CMakeLists.txt 
b/clang/unittests/DirectoryWatcher/CMakeLists.txt
index 58e0aee2d1076..28fc6cb21010c 100644
--- a/clang/unittests/DirectoryWatcher/CMakeLists.txt
+++ b/clang/unittests/DirectoryWatcher/CMakeLists.txt
@@ -2,9 +2,10 @@ if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "Linux" OR 
CMAKE_SYSTEM_NAME STREQUAL Wind
 
   add_clang_unittest(DirectoryWatcherTests
     DirectoryWatcherTest.cpp
+    CLANG_LIBS
+    clangDirectoryWatcher
     LINK_LIBS
     LLVMTestingSupport
-    clangDirectoryWatcher
     LLVM_COMPONENTS
     Support
     )

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to