[PATCH] D137281: [bolt] update bazel rules for f71d32a0eea4
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 12:04:06 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG001d18664f8b: [bolt] update bazel rules for f71d32a0eea4 (authored by durin42).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137281/new/
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.472720.patch
Type: text/x-patch
Size: 1184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221102/55c381a5/attachment.bin>
More information about the llvm-commits
mailing list