From a7752e85cf714aa759216e2254633a3dead2f218 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 16 May 2023 09:00:48 -0400 Subject: [PATCH] [gn build] Port a423b7f1d7ca (ClangReplInterpreterTests -rdynamic) --- llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn | 2 ++ llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn | 1 + llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn index 3a50975..f59e9ba 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 ebc27f3..fe6403e 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 cea530b..ceaacdf 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" ] + } } -- 2.7.4