Skip to content

Commit 7fe98d3

Browse files
author
kr-2003
committed
testing
1 parent cc30ee1 commit 7fe98d3

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

clang/unittests/Interpreter/CMakeLists.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64" AND CMAKE_SYSTEM_NAME STREQUAL "Da
4141
endif()
4242

4343
if(DEFINED _orc_rt_target)
44-
add_dependencies(ClangReplInterpreterTests
45-
llvm-jitlink-executor
46-
${_orc_rt_target}
47-
)
44+
if(TARGET ${_orc_rt_target})
45+
add_dependencies(ClangReplInterpreterTests
46+
llvm-jitlink-executor
47+
${_orc_rt_target}
48+
)
49+
else()
50+
add_dependencies(ClangReplInterpreterTests
51+
llvm-jitlink-executor
52+
)
53+
endif()
4854
endif()
4955

5056
# Exceptions on Windows are not yet supported.

clang/unittests/Interpreter/InterpreterTest.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ TEST_F(InterpreterTest, SanityWithRemoteExecution) {
178178
if (!HostSupportsJIT())
179179
GTEST_SKIP();
180180

181+
std::string OrcRuntimePath = getOrcRuntimePath();
182+
183+
if (llvm::sys::fs::exists(OrcRuntimePath)) {
184+
std::cout << "Using Orc Runtime Path: " << OrcRuntimePath << "\n";
185+
} else {
186+
std::cerr << "Orc Runtime Path does not exist: " << OrcRuntimePath
187+
<< std::endl;
188+
GTEST_SKIP();
189+
}
190+
181191
std::unique_ptr<Interpreter> Interp = createInterpreterWithRemoteExecution();
182192

183193
using PTU = PartialTranslationUnit;

0 commit comments

Comments
 (0)