[llvm] 67119c7 - [gn] try porting 07af0e2d3e84 even more
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 13:58:13 PST 2022
Author: Nico Weber
Date: 2022-12-18T16:58:04-05:00
New Revision: 67119c7cbad7e2341ca4fca02ea4fc09f09e8734
URL: https://github.com/llvm/llvm-project/commit/67119c7cbad7e2341ca4fca02ea4fc09f09e8734
DIFF: https://github.com/llvm/llvm-project/commit/67119c7cbad7e2341ca4fca02ea4fc09f09e8734.diff
LOG: [gn] try porting 07af0e2d3e84 even more
Possibly fixes tests on Linux. This corresponds to
`export_executable_symbols_for_plugins` calls in CMake.
Added:
Modified:
llvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn
index a94695ef57db4..4c3fe2fe08652 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn
@@ -85,4 +85,11 @@ unittest("AnalysisTests") {
if (host_os != "win") {
deps += [ ":InlineAdvisorPlugin" ]
}
+
+ # Support plugins.
+ # FIXME: Disable dead stripping once other binaries are dead-stripped.
+ if (host_os != "mac" && host_os != "win") {
+ # Corresponds to export_executable_symbols() in cmake.
+ ldflags = [ "-rdynamic" ]
+ }
}
More information about the llvm-commits
mailing list