File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
utils/bazel/llvm-project-overlay/bolt Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 2
2
# See https://llvm.org/LICENSE.txt for license information.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
5
+ load ("@bazel_skylib//rules:expand_template.bzl" , "expand_template" )
6
+
5
7
package (
6
8
default_visibility = ["//visibility:public" ],
7
9
)
@@ -91,14 +93,24 @@ cc_library(
91
93
],
92
94
)
93
95
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
+
94
106
cc_library (
95
107
name = "RuntimeLibs" ,
96
108
srcs = glob ([
97
109
"lib/RuntimeLibs/*.cpp" ,
98
110
]),
99
- hdrs = glob ([
111
+ textual_hdrs = glob ([
100
112
"include/bolt/RuntimeLibs/*.h" ,
101
- ]),
113
+ ]) + [ "include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc" ] ,
102
114
includes = ["include" ],
103
115
deps = [
104
116
":Core" ,
You can’t perform that action at this time.
0 commit comments