[llvm] a91a00d - Reland "[gn build] (manually) port 36892727e4f1"

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 19:33:05 PST 2022


Author: Nico Weber
Date: 2022-02-01T22:32:31-05:00
New Revision: a91a00d378aa00952aca0e75e1f936b7182d9810

URL: https://github.com/llvm/llvm-project/commit/a91a00d378aa00952aca0e75e1f936b7182d9810
DIFF: https://github.com/llvm/llvm-project/commit/a91a00d378aa00952aca0e75e1f936b7182d9810.diff

LOG: Reland "[gn build] (manually) port 36892727e4f1"

This reverts commit da01fb7471a027c29db1b78e1721cd1ae6df6572.
Matches 84f137a590e7.

Also adds LLVM_INSTALL_TOOLCHAIN_ONLY, which 84f137a590e7 added too.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn
index 136d6b64c3ff5..76dbb498b611f 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn
@@ -33,6 +33,8 @@ write_lit_config("lit_site_cfg") {
 
   extra_values = [
     "CLANG_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
+    "LLVM_ENABLE_PLUGINS=0",
+    "LLVM_INSTALL_TOOLCHAIN_ONLY=0",
     "LLVM_LIT_TOOLS_DIR=",  # Intentionally empty, matches cmake build.
     "LLVM_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
     "Python3_EXECUTABLE=$python_path",
@@ -43,6 +45,14 @@ write_lit_config("lit_site_cfg") {
   } else {
     extra_values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=0" ]
   }
+
+  if (host_os == "mac") {
+    extra_values += [ "LLVM_PLUGIN_EXT=.dylib" ]
+  } else if (host_os == "win") {
+    extra_values += [ "LLVM_PLUGIN_EXT=.dll" ]
+  } else {
+    extra_values += [ "LLVM_PLUGIN_EXT=.so" ]
+  }
 }
 
 write_lit_config("lit_unit_site_cfg") {


        


More information about the llvm-commits mailing list