Skip to content

Commit 67ad23f

Browse files
author
Dmitry Chernenkov
committed
[Bazel] Fix Bazel build for Bolt
1 parent 8d4cb92 commit 67ad23f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ package(
1010

1111
licenses(["notice"])
1212

13+
genrule(
14+
name = "generate_vcs_revision",
15+
outs = ["include/VCSVersion.inc"],
16+
cmd = "echo '#undef BOLT_REVISION' >> $@\n",
17+
)
18+
1319
cc_binary(
1420
name = "llvm-bolt-heatmap",
1521
srcs = glob([
@@ -114,6 +120,7 @@ cc_library(
114120
textual_hdrs = glob([
115121
"include/bolt/RuntimeLibs/*.h",
116122
]) + ["include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc"],
123+
defines=["CMAKE_INSTALL_FULL_LIBDIR=\\\"\\\""],
117124
deps = [
118125
":Core",
119126
":Passes",
@@ -289,7 +296,9 @@ cc_library(
289296
srcs = glob([
290297
"lib/Utils/*.cpp",
291298
]),
292-
hdrs = glob([
299+
hdrs = [
300+
"include/VCSVersion.inc",
301+
] + glob([
293302
"include/bolt/Utils/*.h",
294303
]),
295304
includes = ["include"],

0 commit comments

Comments
 (0)