Skip to content

Commit a43b1ef

Browse files
author
kr-2003
committed
testing
1 parent 2928c76 commit a43b1ef

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

clang/unittests/Interpreter/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,21 @@ add_distinct_clang_unittest(ClangReplInterpreterTests
3131
Object
3232
)
3333

34-
add_dependencies(ClangReplInterpreterTests llvm-jitlink-executor)
34+
message(STATUS "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
35+
message(STATUS "CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
36+
37+
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64")
38+
set(_orc_rt_target orc_rt-x86_64)
39+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64" AND CMAKE_SYSTEM_NAME STREQUAL "Darwin")
40+
set(_orc_rt_target orc_rt_osx)
41+
endif()
42+
43+
if(DEFINED _orc_rt_target)
44+
add_dependencies(ClangReplInterpreterTests
45+
llvm-jitlink-executor
46+
${_orc_rt_target}
47+
)
48+
endif()
3549

3650
# Exceptions on Windows are not yet supported.
3751
if(NOT WIN32)

0 commit comments

Comments
 (0)