Skip to content

Commit 001d186

Browse files
committed
[bolt] update bazel rules for f71d32a
Differential Revision: https://reviews.llvm.org/D137281
1 parent a3463a9 commit 001d186

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

utils/bazel/llvm-project-overlay/bolt/BUILD.bazel

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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")
6+
57
package(
68
default_visibility = ["//visibility:public"],
79
)
@@ -91,14 +93,24 @@ cc_library(
9193
],
9294
)
9395

96+
expand_template(
97+
name = "RuntimeLibraryVariables_inc",
98+
out = "include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc",
99+
substitutions = {
100+
# FIXME this is a total guess
101+
"@LLVM_LIBDIR_SUFFIX@": "lib",
102+
},
103+
template = "include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc.in",
104+
)
105+
94106
cc_library(
95107
name = "RuntimeLibs",
96108
srcs = glob([
97109
"lib/RuntimeLibs/*.cpp",
98110
]),
99-
hdrs = glob([
111+
textual_hdrs = glob([
100112
"include/bolt/RuntimeLibs/*.h",
101-
]),
113+
]) + ["include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc"],
102114
includes = ["include"],
103115
deps = [
104116
":Core",

0 commit comments

Comments
 (0)