Skip to content

Commit fd18531

Browse files
first attempt
1 parent 4b97c6e commit fd18531

File tree

1 file changed

+10
-1
lines changed
  • utils/bazel/llvm-project-overlay/clang-tools-extra/unittests

1 file changed

+10
-1
lines changed

utils/bazel/llvm-project-overlay/clang-tools-extra/unittests/BUILD.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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")
56
load("@rules_cc//cc:defs.bzl", "cc_test")
67

78
package(
@@ -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+
5767
cc_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",

0 commit comments

Comments
 (0)