File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 22# See https://llvm.org/LICENSE.txt for license information.
33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
5+ load ("@bazel_skylib//rules:expand_template.bzl" , "expand_template" )
56load ("@rules_cc//cc:defs.bzl" , "cc_test" )
67
78package (
@@ -54,6 +55,15 @@ cc_test(
5455 ],
5556)
5657
58+ expand_template (
59+ name = "clang_doc_config" ,
60+ out = "clang-doc/config.h" ,
61+ substitutions = {
62+ "#define CLANG_DOC_TEST_ASSET_DIR \" ${CLANG_DOC_TEST_ASSET_DIR}\" " : "#define CLANG_DOC_TEST_ASSET_DIR \" clang-tools-extra/clang-doc/assets\" " ,
63+ },
64+ template = "clang-doc/config.h.cmake" ,
65+ )
66+
5767cc_test (
5868 name = "clang_doc_test" ,
5969 size = "small" ,
@@ -65,7 +75,6 @@ cc_test(
6575 allow_empty = False ,
6676 ),
6777 data = ["//clang-tools-extra/clang-doc:assets" ],
68- local_defines = ['CLANG_DOC_TEST_ASSET_DIR=\\ "clang-tools-extra/clang-doc/assets\\ "' ],
6978 deps = [
7079 "//clang:ast" ,
7180 "//clang:basic" ,
You can’t perform that action at this time.
0 commit comments