File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
clang/unittests/Interpreter Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,21 @@ add_distinct_clang_unittest(ClangReplInterpreterTests
31
31
Object
32
32
)
33
33
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 ()
35
49
36
50
# Exceptions on Windows are not yet supported.
37
51
if (NOT WIN32 )
You can’t perform that action at this time.
0 commit comments