mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-07 10:54:01 +00:00
[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
This commit is contained in:
parent
3755ea93b4
commit
ca8d2533c7
@ -22,3 +22,5 @@ target_link_libraries(ClangReplInterpreterExceptionTests PUBLIC
|
||||
clangFrontend
|
||||
)
|
||||
add_dependencies(ClangReplInterpreterExceptionTests clang-resource-headers)
|
||||
|
||||
export_executable_symbols(ClangReplInterpreterExceptionTests)
|
||||
|
Loading…
Reference in New Issue
Block a user