diff options
author | Augie Fackler <augie@google.com> | 2022-11-02 19:29:24 +0300 |
---|---|---|
committer | Augie Fackler <augie@google.com> | 2022-11-02 22:03:52 +0300 |
commit | 001d18664f8bcf63af64f10688809f7681dfbf0b (patch) | |
tree | 852f26b8a8575b5271e9872928a1381a85ef9e49 /utils | |
parent | a3463a9f5cb0880357fd3e4c47ed4c2b09f0e6fc (diff) |
[bolt] update bazel rules for f71d32a0eea4
Differential Revision: https://reviews.llvm.org/D137281
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bazel/llvm-project-overlay/bolt/BUILD.bazel | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel index d2ffeedec196..bc2dd02e653e 100644 --- a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel +++ b/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 @@ cc_library( ], ) +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", |