[llvm] 0558c7e - [gn] port 2d4acb086541 (LLVM_ENABLE_CURL)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 11:42:05 PDT 2024
Author: Nico Weber
Date: 2024-05-02T14:41:56-04:00
New Revision: 0558c7e01db81b3ac307fe59737fefd8bd060873
URL: https://github.com/llvm/llvm-project/commit/0558c7e01db81b3ac307fe59737fefd8bd060873
DIFF: https://github.com/llvm/llvm-project/commit/0558c7e01db81b3ac307fe59737fefd8bd060873.diff
LOG: [gn] port 2d4acb086541 (LLVM_ENABLE_CURL)
Added:
Modified:
llvm/utils/gn/secondary/lldb/test/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/lldb/test/BUILD.gn b/llvm/utils/gn/secondary/lldb/test/BUILD.gn
index e903d16e338c93..3b6b128674f35b 100644
--- a/llvm/utils/gn/secondary/lldb/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/test/BUILD.gn
@@ -1,6 +1,7 @@
import("//llvm/triples.gni")
#import("//llvm/utils/gn/build/libs/xar/enable.gni")
+import("//llvm/utils/gn/build/libs/curl/enable.gni")
import("//llvm/utils/gn/build/libs/xml/enable.gni")
import("//llvm/utils/gn/build/libs/zlib/enable.gni")
import("//llvm/utils/gn/build/write_cmake_config.gni")
@@ -91,6 +92,12 @@ write_lit_cfg("lit_api_site_cfg") {
} else {
extra_values += [ "SHLIBDIR=" + rebase_path("$root_out_dir/lib", dir) ]
}
+
+ if (llvm_enable_libcurl) {
+ extra_values += [ "LLVM_ENABLE_CURL=1" ]
+ } else {
+ extra_values += [ "LLVM_ENABLE_CURL=0" ] # Must be 0.
+ }
}
write_lit_cfg("lit_shell_site_cfg") {
More information about the llvm-commits
mailing list