[llvm] 253a660 - [gn build] fix llvm-jitlink tests on linux after ef2389235c5dec0
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 2 10:41:23 PST 2021
Author: Nico Weber
Date: 2021-03-02T13:41:09-05:00
New Revision: 253a6606fac7ee9f2401c9356350e1340c6d80ac
URL: https://github.com/llvm/llvm-project/commit/253a6606fac7ee9f2401c9356350e1340c6d80ac
DIFF: https://github.com/llvm/llvm-project/commit/253a6606fac7ee9f2401c9356350e1340c6d80ac.diff
LOG: [gn build] fix llvm-jitlink tests on linux after ef2389235c5dec0
Added:
Modified:
llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
index ae26bb618043..8ac9274bc36e 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
@@ -15,4 +15,8 @@ executable("llvm-jitlink") {
"llvm-jitlink-macho.cpp",
"llvm-jitlink.cpp",
]
+ if (host_os != "mac" && host_os != "win") {
+ # Corresponds to export_executable_symbols() in cmake.
+ ldflags = [ "-rdynamic" ]
+ }
}
More information about the llvm-commits
mailing list