diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-08-25 11:27:03 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-08-25 11:28:36 -0700 |
commit | a5e7d166be7f169b3515beb8508d5e1713551847 (patch) | |
tree | adee1442ed9033feac463dd8dd199701ee82a101 | |
parent | 54c99a906740a6dee2e0827d38b351d5966c2e2d (diff) | |
download | llvm-a5e7d166be7f169b3515beb8508d5e1713551847.zip llvm-a5e7d166be7f169b3515beb8508d5e1713551847.tar.gz llvm-a5e7d166be7f169b3515beb8508d5e1713551847.tar.bz2 |
[gn build] Pass -Wl,--export-dynamic for clang-repl
Fixes some clang-repl tests failing with
error: Symbols not found: [ llvm_orc_registerJITLoaderGDBWrapper ]
Mirrors export_executable_symbols_for_plugins in CMake. Other binaries
also use export_executable_symbols_for_plugins, but testing-wise it
seems like it's only necessary for clang-repl, so limit it to clang-repl
for now.
-rw-r--r-- | llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn index fe6403e..d29c173 100644 --- a/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn @@ -13,4 +13,7 @@ executable("clang-repl") { "//llvm/lib/Target:TargetsToBuild", ] sources = [ "ClangRepl.cpp" ] + if (current_os == "linux") { + ldflags = [ "-Wl,--export-dynamic" ] + } } |