[llvm] 2586c23 - [gn build] Prevent deps on HTTP requests in clang and lld at GN time
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 10 05:56:39 PST 2021
Author: Nico Weber
Date: 2021-12-10T08:56:24-05:00
New Revision: 2586c23bae04c4d898c3d544ab51d2846a930930
URL: https://github.com/llvm/llvm-project/commit/2586c23bae04c4d898c3d544ab51d2846a930930
DIFF: https://github.com/llvm/llvm-project/commit/2586c23bae04c4d898c3d544ab51d2846a930930.diff
LOG: [gn build] Prevent deps on HTTP requests in clang and lld at GN time
To make sure no regressions creep in. See also discussion on
https://reviews.llvm.org/D113717
We don't want this dep in most targets, but protecting clang and lld is
a good start.
Added:
Modified:
llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
index 24a95e1968bec..aad91cf59e399 100644
--- a/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
@@ -75,6 +75,7 @@ executable("clang") {
"//llvm/lib/Transforms/Utils",
"//llvm/lib/Transforms/Vectorize",
]
+ assert_no_deps = [ "//llvm/lib/Debuginfod" ]
if (host_os == "mac") {
deps += [ ":write_info_plist" ]
plist = get_target_outputs(":write_info_plist")
diff --git a/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn b/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
index 2689038dbfba6..87f4fb5511a83 100644
--- a/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
+++ b/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
@@ -33,5 +33,6 @@ executable("lld") {
"//llvm/lib/Support",
"//llvm/utils/gn/build/libs/xar",
]
+ assert_no_deps = [ "//llvm/lib/Debuginfod" ]
sources = [ "lld.cpp" ]
}
More information about the llvm-commits
mailing list