[llvm] a7752e8 - [gn build] Port a423b7f1d7ca (ClangReplInterpreterTests -rdynamic)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 06:02:45 PDT 2023
Author: Nico Weber
Date: 2023-05-16T09:02:36-04:00
New Revision: a7752e85cf714aa759216e2254633a3dead2f218
URL: https://github.com/llvm/llvm-project/commit/a7752e85cf714aa759216e2254633a3dead2f218
DIFF: https://github.com/llvm/llvm-project/commit/a7752e85cf714aa759216e2254633a3dead2f218.diff
LOG: [gn build] Port a423b7f1d7ca (ClangReplInterpreterTests -rdynamic)
Added:
Modified:
llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
index 3a50975bfa3d3..f59e9ba8d4339 100644
--- a/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
@@ -26,5 +26,7 @@ static_library("Interpreter") {
"IncrementalExecutor.cpp",
"IncrementalParser.cpp",
"Interpreter.cpp",
+ "InterpreterUtils.cpp",
+ "Value.cpp",
]
}
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 ebc27f32c0d76..fe6403e543fbe 100644
--- a/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn
@@ -1,6 +1,7 @@
executable("clang-repl") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
+ "//clang/lib/AST",
"//clang/lib/Basic",
"//clang/lib/Interpreter",
"//clang/lib/Tooling",
diff --git a/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
index cea530b6d708f..ceaacdf5cb08e 100644
--- a/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
@@ -14,4 +14,11 @@ unittest("ClangReplInterpreterTests") {
"IncrementalProcessingTest.cpp",
"InterpreterTest.cpp",
]
+
+ # 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