[gn build] (manually) port 36892727e4f1
authorNico Weber <thakis@chromium.org>
Sat, 29 Jan 2022 21:06:24 +0000 (16:06 -0500)
committerNico Weber <thakis@chromium.org>
Sat, 29 Jan 2022 21:06:24 +0000 (16:06 -0500)
llvm/utils/gn/secondary/clang-tools-extra/test/BUILD.gn

index 136d6b6..a0930a6 100644 (file)
@@ -33,6 +33,7 @@ write_lit_config("lit_site_cfg") {
 
   extra_values = [
     "CLANG_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
+    "LLVM_ENABLE_PLUGINS=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 +44,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") {