Skip to content

Commit ca8d253

Browse files
author
Kai Luo
committed
[clang-repl][Orc] Export executable symbols in ClangReplInterpreterExceptionTests
In Orc runtime, we use `dlopen(nullptr, ...)` to open current executable and use `dlsym` to find addresses of symbols, this requires `-rdynamic` flag. As `llvm/CMakeLists.txt` suggests ``` # Make sure we don't get -rdynamic in every binary. For those that need it, # use export_executable_symbols(target). ``` This patch exports symbols in `ClangReplInterpreterExceptionTests`. This also fixes `ClangReplInterpreterExceptionTests` is skipped on ppc64 when jitlink is used. Reviewed By: v.g.vassilev Differential Revision: https://reviews.llvm.org/D159167
1 parent 3755ea9 commit ca8d253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ target_link_libraries(ClangReplInterpreterExceptionTests PUBLIC
2222
clangFrontend
2323
)
2424
add_dependencies(ClangReplInterpreterExceptionTests clang-resource-headers)
25+
26+
export_executable_symbols(ClangReplInterpreterExceptionTests)

0 commit comments

Comments
 (0)