Skip to content

Commit 7b2dfe1

Browse files
committed
[gn build] (manually) port 3689272
1 parent 3689272 commit 7b2dfe1

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ 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",
3637
"LLVM_LIT_TOOLS_DIR=", # Intentionally empty, matches cmake build.
3738
"LLVM_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
3839
"Python3_EXECUTABLE=$python_path",
@@ -43,6 +44,14 @@ write_lit_config("lit_site_cfg") {
4344
} else {
4445
extra_values += [ "CLANG_TIDY_ENABLE_STATIC_ANALYZER=0" ]
4546
}
47+
48+
if (host_os == "mac") {
49+
extra_values += [ "LLVM_PLUGIN_EXT=.dylib" ]
50+
} else if (host_os == "win") {
51+
extra_values += [ "LLVM_PLUGIN_EXT=.dll" ]
52+
} else {
53+
extra_values += [ "LLVM_PLUGIN_EXT=.so" ]
54+
}
4655
}
4756

4857
write_lit_config("lit_unit_site_cfg") {

0 commit comments

Comments
 (0)