[PATCH] D137281: [bolt] update bazel rules for f71d32a0eea4
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 11:54:40 PDT 2022
durin42 created this revision.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
durin42 requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137281
Files:
utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
@@ -2,6 +2,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
+
package(
default_visibility = ["//visibility:public"],
)
@@ -91,14 +93,24 @@
],
)
+expand_template(
+ name = "RuntimeLibraryVariables_inc",
+ out = "include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc",
+ substitutions = {
+ # FIXME this is a total guess
+ "@LLVM_LIBDIR_SUFFIX@": "lib",
+ },
+ template = "include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc.in",
+)
+
cc_library(
name = "RuntimeLibs",
srcs = glob([
"lib/RuntimeLibs/*.cpp",
]),
- hdrs = glob([
+ textual_hdrs = glob([
"include/bolt/RuntimeLibs/*.h",
- ]),
+ ]) + ["include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc"],
includes = ["include"],
deps = [
":Core",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137281.472718.patch
Type: text/x-patch
Size: 1184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221102/20566bb4/attachment.bin>
More information about the llvm-commits
mailing list