Skip to content

Commit a7752e8

Browse files
committed
[gn build] Port a423b7f (ClangReplInterpreterTests -rdynamic)
1 parent ef2a823 commit a7752e8

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ static_library("Interpreter") {
2626
"IncrementalExecutor.cpp",
2727
"IncrementalParser.cpp",
2828
"Interpreter.cpp",
29+
"InterpreterUtils.cpp",
30+
"Value.cpp",
2931
]
3032
}

llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
executable("clang-repl") {
22
configs += [ "//llvm/utils/gn/build:clang_code" ]
33
deps = [
4+
"//clang/lib/AST",
45
"//clang/lib/Basic",
56
"//clang/lib/Interpreter",
67
"//clang/lib/Tooling",

llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ unittest("ClangReplInterpreterTests") {
1414
"IncrementalProcessingTest.cpp",
1515
"InterpreterTest.cpp",
1616
]
17+
18+
# Support plugins.
19+
# FIXME: Disable dead stripping once other binaries are dead-stripped.
20+
if (host_os != "mac" && host_os != "win") {
21+
# Corresponds to export_executable_symbols() in cmake.
22+
ldflags = [ "-rdynamic" ]
23+
}
1724
}

0 commit comments

Comments
 (0)