Skip to content

Commit a91a00d

Browse files
committed
Reland "[gn build] (manually) port 3689272"
This reverts commit da01fb7. Matches 84f137a. Also adds LLVM_INSTALL_TOOLCHAIN_ONLY, which 84f137a added too.
1 parent 1c1b670 commit a91a00d

File tree

1 file changed

+10
-0
lines changed
  • llvm/utils/gn/secondary/clang-tools-extra/test

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ write_lit_config("lit_site_cfg") {
3333

3434
extra_values = [
3535
"CLANG_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
36+
"LLVM_ENABLE_PLUGINS=0",
37+
"LLVM_INSTALL_TOOLCHAIN_ONLY=0",
3638
"LLVM_LIT_TOOLS_DIR=", # Intentionally empty, matches cmake build.
3739
"LLVM_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
3840
"Python3_EXECUTABLE=$python_path",
@@ -43,6 +45,14 @@ write_lit_config("lit_site_cfg") {
4345
} else {
4446
extra_values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=0" ]
4547
}
48+
49+
if (host_os == "mac") {
50+
extra_values += [ "LLVM_PLUGIN_EXT=.dylib" ]
51+
} else if (host_os == "win") {
52+
extra_values += [ "LLVM_PLUGIN_EXT=.dll" ]
53+
} else {
54+
extra_values += [ "LLVM_PLUGIN_EXT=.so" ]
55+
}
4656
}
4757

4858
write_lit_config("lit_unit_site_cfg") {

0 commit comments

Comments
 (0)