[clang] [clang-repl] Disable out of process JIT tests on non-unix platforms (PR #159404)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 17 21:12:57 PDT 2025


https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/159404

>From dbabd925f7cd1a1c1bb32ebcc72a4353ffc8c07b Mon Sep 17 00:00:00 2001
From: kr-2003 <kumar.kr.abhinav at gmail.com>
Date: Wed, 17 Sep 2025 22:41:47 +0530
Subject: [PATCH] Fix: out-of-process tests only on unix

---
 clang/unittests/Interpreter/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/unittests/Interpreter/CMakeLists.txt b/clang/unittests/Interpreter/CMakeLists.txt
index 7b8dcfc9b0546..66b396b53cb55 100644
--- a/clang/unittests/Interpreter/CMakeLists.txt
+++ b/clang/unittests/Interpreter/CMakeLists.txt
@@ -37,7 +37,7 @@ set(CLANG_REPL_TEST_SOURCES
   CodeCompletionTest.cpp
 )
 
-if(TARGET compiler-rt)
+if(TARGET compiler-rt AND LLVM_ON_UNIX)
   list(APPEND CLANG_REPL_TEST_SOURCES
     OutOfProcessInterpreterTests.cpp
   )
@@ -61,7 +61,7 @@ add_distinct_clang_unittest(ClangReplInterpreterTests
   ${LLVM_COMPONENTS_TO_LINK}
   )
 
-if(TARGET compiler-rt)
+if(TARGET compiler-rt AND LLVM_ON_UNIX)
   add_dependencies(ClangReplInterpreterTests 
     llvm-jitlink-executor 
     compiler-rt



More information about the cfe-commits mailing list