[llvm] 8d498e0 - [gn] port a033dbbe5c43 (clang-stat-cache)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 18:17:32 PST 2023
Author: Nico Weber
Date: 2023-01-18T21:17:22-05:00
New Revision: 8d498e08deaf6e06a578cfedb4eb259b722ac7f6
URL: https://github.com/llvm/llvm-project/commit/8d498e08deaf6e06a578cfedb4eb259b722ac7f6
DIFF: https://github.com/llvm/llvm-project/commit/8d498e08deaf6e06a578cfedb4eb259b722ac7f6.diff
LOG: [gn] port a033dbbe5c43 (clang-stat-cache)
Added:
llvm/utils/gn/secondary/clang/tools/clang-stat-cache/BUILD.gn
Modified:
llvm/utils/gn/secondary/clang/test/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index 480e1cd5a89c4..e0f3f1abbee78 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -155,6 +155,7 @@ group("test") {
"//clang/tools/clang-rename",
"//clang/tools/clang-repl",
"//clang/tools/clang-scan-deps",
+ "//clang/tools/clang-stat-cache",
"//clang/tools/diagtool",
"//clang/tools/driver:symlinks",
"//clang/unittests",
diff --git a/llvm/utils/gn/secondary/clang/tools/clang-stat-cache/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-stat-cache/BUILD.gn
new file mode 100644
index 0000000000000..2506ae10c48b5
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/tools/clang-stat-cache/BUILD.gn
@@ -0,0 +1,10 @@
+executable("clang-stat-cache") {
+ deps = [
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ ]
+ sources = [ "clang-stat-cache.cpp" ]
+ if (current_os == "mac") {
+ frameworks = [ "CoreServices.framework" ]
+ }
+}
diff --git a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
index 0e5528957d16e..6520719ae8b4b 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
@@ -127,6 +127,7 @@ static_library("Support") {
"SmallVector.cpp",
"SourceMgr.cpp",
"SpecialCaseList.cpp",
+ "StatCacheFileSystem.cpp",
"Statistic.cpp",
"StringExtras.cpp",
"StringMap.cpp",
More information about the llvm-commits
mailing list