[PATCH] D61456: [gn] Update the clangd test lit site configuration
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 12:23:55 PDT 2019
phosek created this revision.
phosek added a reviewer: thakis.
Herald added subscribers: llvm-commits, cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov.
Herald added projects: clang, LLVM.
This reflects changes made in r359763.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D61456
Files:
llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
Index: llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
+++ llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
@@ -2,9 +2,9 @@
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_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.cfg"
+ "$root_gen_dir/clang-tools-extra/clangd/unittests/lit.site.cfg.py"
template("write_lit_config") {
write_cmake_config(target_name) {
@@ -20,7 +20,7 @@
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 +46,14 @@
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") ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61456.197835.patch
Type: text/x-patch
Size: 1925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190502/9fdd0525/attachment.bin>
More information about the llvm-commits
mailing list