[llvm] r359825 - [gn] Update the clangd test lit site configuration
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 13:34:54 PDT 2019
Author: phosek
Date: Thu May 2 13:34:54 2019
New Revision: 359825
URL: http://llvm.org/viewvc/llvm-project?rev=359825&view=rev
Log:
[gn] Update the clangd test lit site configuration
This reflects changes made in r359763.
Added:
llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni
Modified:
llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
llvm/trunk/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn
Modified: llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn?rev=359825&r1=359824&r2=359825&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn Thu May 2 13:34:54 2019
@@ -1,10 +1,7 @@
import("//clang-tools-extra/clangd/xpc/enable.gni")
import("//llvm/triples.gni")
import("//llvm/utils/gn/build/write_cmake_config.gni")
-
-clangd_lit_site_cfg_file = "$root_gen_dir/clang-tools-extra/clangd/test/lit.cfg"
-clangd_lit_unit_site_cfg_file =
- "$root_gen_dir/clang-tools-extra/clangd/unittests/lit.cfg"
+import("clangd_lit_site_cfg_files.gni")
template("write_lit_config") {
write_cmake_config(target_name) {
@@ -20,7 +17,7 @@ template("write_lit_config") {
write_lit_config("lit_site_cfg") {
# Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER.
- input = "//clang-tools-extra/clangd/test/lit.cfg.in"
+ input = "//clang-tools-extra/clangd/test/lit.site.cfg.py.in"
output = clangd_lit_site_cfg_file
extra_values = [
@@ -46,12 +43,14 @@ write_lit_config("lit_site_cfg") {
write_lit_config("lit_unit_site_cfg") {
# Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER.
- input = "//clang-tools-extra/clangd/unittests/lit.cfg.in"
+ input = "//clang-tools-extra/clangd/unittests/lit.site.cfg.py.in"
output = clangd_lit_unit_site_cfg_file
extra_values =
[ "CMAKE_CURRENT_BINARY_DIR=" +
rebase_path(get_label_info("//clang-tools-extra/clangd/unittests",
- "target_out_dir")) ]
+ "target_out_dir")),
+ "CMAKE_CURRENT_SOURCE_DIR=" +
+ rebase_path("//clang-tools-extra/clangd/unittest")]
if (host_os == "win") {
# See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn
extra_values += [ "SHLIBDIR=" + rebase_path("$root_out_dir/bin") ]
Added: llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni?rev=359825&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni (added)
+++ llvm/trunk/utils/gn/secondary/clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni Thu May 2 13:34:54 2019
@@ -0,0 +1,4 @@
+clangd_lit_site_cfg_file =
+ "$root_gen_dir/clang-tools-extra/clangd/test/lit.site.cfg.py"
+clangd_lit_unit_site_cfg_file =
+ "$root_gen_dir/clang-tools-extra/clangd/unittests/lit.site.cfg.py"
Modified: llvm/trunk/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn?rev=359825&r1=359824&r2=359825&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn Thu May 2 13:34:54 2019
@@ -1,4 +1,5 @@
import("//clang-tools-extra/test/clang_tools_extra_lit_site_cfg_files.gni")
+import("//clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni")
import("//clang/test/clang_lit_site_cfg_files.gni")
import("//lld/test/lld_lit_site_cfg_files.gni")
import("//llvm/test/llvm_lit_site_cfg_files.gni")
@@ -42,6 +43,12 @@ write_cmake_config("llvm-lit") {
config_map +=
"map_config('" + rebase_path("//clang-tools-extra/test/Unit/lit.cfg.py") +
"', '" + rebase_path(clang_tools_extra_lit_unit_site_cfg_file) + "')\n"
+ config_map +=
+ "map_config('" + rebase_path("//clang-tools-extra/clangd/test/lit.cfg.py") +
+ "', '" + rebase_path(clangd_lit_site_cfg_file) + "')\n"
+ config_map +=
+ "map_config('" + rebase_path("//clang-tools-extra/clang/unittests/lit.cfg.py") +
+ "', '" + rebase_path(clangd_lit_unit_site_cfg_file) + "')\n"
config_map += "map_config('" + rebase_path("//clang/test/lit.cfg.py") +
"', '" + rebase_path(clang_lit_site_cfg_file) + "')\n"
config_map += "map_config('" + rebase_path("//clang/test/Unit/lit.cfg.py") +
More information about the llvm-commits
mailing list