Skip to content

Commit 531d3ed

Browse files
committed
Workaround parse_headers related error in boost.context
See bazelbuild/bazel-central-registry#7158 Signed-off-by: Matt Liberty <[email protected]>
1 parent 58dbe80 commit 531d3ed

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

MODULE.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,10 @@ http_archive(
214214
"https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.0/openmp-20.1.0.src.tar.xz",
215215
],
216216
)
217+
218+
single_version_override(
219+
module_name = "boost.context",
220+
patch_strip = 1,
221+
patches = ["//bazel:boost_context_disable_parse_headers.patch"],
222+
version = BOOST_VERSION,
223+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--- a/BUILD.bazel
2+
+++ b/BUILD.bazel
3+
@@ -145,5 +145,4 @@
4+
],
5+
),
6+
defines = ["BOOST_ALL_NO_LIB"],
7+
- features = ["parse_headers"],
8+
includes = ["include"],

0 commit comments

Comments
 (0)