[clang] [clang][unittests] Build the libclang unit tests on Windows (PR #232809)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 08:51:25 PDT 2026


https://github.com/UebelAndre created https://github.com/llvm/llvm-project/pull/232809

None

>From 240a83b45b7b462dd74d843bd6416948eb608575 Mon Sep 17 00:00:00 2001
From: UebelAndre <github at uebelandre.com>
Date: Fri, 16 Oct 2026 07:49:26 -0700
Subject: [PATCH] [clang][unittests] Build the libclang unit tests on Windows

The remaining Windows failures are the VirtualFileOverlay tests, which
assume POSIX paths; those are skipped at runtime in a follow-up.
---
 clang/unittests/CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/clang/unittests/CMakeLists.txt b/clang/unittests/CMakeLists.txt
index b2fee01649abc6..91e1890e6b427b 100644
--- a/clang/unittests/CMakeLists.txt
+++ b/clang/unittests/CMakeLists.txt
@@ -97,9 +97,7 @@ add_subdirectory(CodeGen)
 if(HAVE_CLANG_REPL_SUPPORT)
   add_subdirectory(Interpreter)
 endif()
-# FIXME: libclang unit tests are disabled on Windows due
-# to failures, mostly in libclang.VirtualFileOverlay_*.
-if(NOT WIN32 AND CLANG_TOOL_LIBCLANG_BUILD) 
+if(CLANG_TOOL_LIBCLANG_BUILD)
   add_subdirectory(libclang)
 endif()
 add_subdirectory(DirectoryWatcher)



More information about the cfe-commits mailing list