[llvm] 9310840 - [gn build] (manually) port 92f9852fc99b, clang-repl
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 05:54:03 PDT 2021
Author: Nico Weber
Date: 2021-05-13T08:53:53-04:00
New Revision: 9310840cc249ae1aec427948fb09b8056e7094c0
URL: https://github.com/llvm/llvm-project/commit/9310840cc249ae1aec427948fb09b8056e7094c0
DIFF: https://github.com/llvm/llvm-project/commit/9310840cc249ae1aec427948fb09b8056e7094c0.diff
LOG: [gn build] (manually) port 92f9852fc99b, clang-repl
Added:
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
Modified:
llvm/utils/gn/secondary/clang/test/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/BUILD.gn
llvm/utils/gn/secondary/clang/unittests/CodeGen/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
new file mode 100644
index 000000000000..da142feb6af8
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
@@ -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",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index de5188945b59..ed255a668b40 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -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",
diff --git a/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn
new file mode 100644
index 000000000000..ebc27f32c0d7
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/tools/clang-repl/BUILD.gn
@@ -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" ]
+}
diff --git a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
index 1b8904c1502e..319205b5831b 100644
--- a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
@@ -12,6 +12,7 @@ group("unittests") {
"Format:FormatTests",
"Frontend:FrontendTests",
"Index:IndexTests",
+ "Interpreter:ClangReplInterpreterTests",
"Introspection:IntrospectionTests",
"Lex:LexTests",
"Rename:ClangRenameTests",
diff --git a/llvm/utils/gn/secondary/clang/unittests/CodeGen/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/CodeGen/BUILD.gn
index 09d296d71395..54a0600f6db5 100644
--- a/llvm/utils/gn/secondary/clang/unittests/CodeGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/CodeGen/BUILD.gn
@@ -16,7 +16,6 @@ unittest("ClangCodeGenTests") {
"BufferSourceTest.cpp",
"CheckTargetFeaturesTest.cpp",
"CodeGenExternalTest.cpp",
- "IncrementalProcessingTest.cpp",
"TBAAMetadataTest.cpp",
]
}
diff --git a/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
new file mode 100644
index 000000000000..26d2e2cb8cc0
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/unittests/Interpreter/BUILD.gn
@@ -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",
+ ]
+}
More information about the llvm-commits
mailing list