1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[gn build] (manually) port 92f9852fc99b, clang-repl

This commit is contained in:
Nico Weber 2021-05-13 08:53:11 -04:00
parent da8040707c
commit 9d6d3a623d
6 changed files with 62 additions and 1 deletions

View File

@ -0,0 +1,29 @@
static_library("Interpreter") {
output_name = "clangInterpreter"
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/AST",
"//clang/lib/Analysis",
"//clang/lib/Basic",
"//clang/lib/Driver",
"//clang/lib/Edit",
"//clang/lib/Frontend",
"//clang/lib/FrontendTool",
"//clang/lib/Lex",
"//clang/lib/Parse",
"//clang/lib/Sema",
"//clang/lib/Serialization",
"//clang/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/Option",
"//llvm/lib/Support",
"//llvm/lib/Target",
"//llvm/lib/Target:NativeTarget",
"//llvm/lib/ExecutionEngine/Orc",
]
sources = [
"IncrementalExecutor.cpp",
"IncrementalParser.cpp",
"Interpreter.cpp",
]
}

View File

@ -145,6 +145,7 @@ group("test") {
"//clang/tools/clang-offload-bundler",
"//clang/tools/clang-refactor",
"//clang/tools/clang-rename",
"//clang/tools/clang-repl",
"//clang/tools/clang-scan-deps",
"//clang/tools/diagtool",
"//clang/tools/driver:symlinks",

View File

@ -0,0 +1,15 @@
executable("clang-repl") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/Basic",
"//clang/lib/Interpreter",
"//clang/lib/Tooling",
"//llvm/lib/ExecutionEngine/Orc",
"//llvm/lib/IR",
"//llvm/lib/LineEditor",
"//llvm/lib/Option",
"//llvm/lib/Support",
"//llvm/lib/Target:TargetsToBuild",
]
sources = [ "ClangRepl.cpp" ]
}

View File

@ -12,6 +12,7 @@ group("unittests") {
"Format:FormatTests",
"Frontend:FrontendTests",
"Index:IndexTests",
"Interpreter:ClangReplInterpreterTests",
"Introspection:IntrospectionTests",
"Lex:LexTests",
"Rename:ClangRenameTests",

View File

@ -16,7 +16,6 @@ unittest("ClangCodeGenTests") {
"BufferSourceTest.cpp",
"CheckTargetFeaturesTest.cpp",
"CodeGenExternalTest.cpp",
"IncrementalProcessingTest.cpp",
"TBAAMetadataTest.cpp",
]
}

View File

@ -0,0 +1,16 @@
import("//llvm/utils/unittest/unittest.gni")
unittest("ClangReplInterpreterTests") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/AST",
"//clang/lib/Basic",
"//clang/lib/Frontend",
"//clang/lib/Interpreter",
"//llvm/lib/IR",
]
sources = [
"IncrementalProcessingTest.cpp",
"InterpreterTest.cpp",
]
}