-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix empty glob in boost.dynamic_bitset and .random (#3108)
More boost fixes for empty globs. I am also adding `--incompatible_disallow_empty_glob` to the presubmit jobs to catch this in future versions. Needs skip-url-stability-check --------- Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module( | ||
name = "boost.dynamic_bitset", | ||
version = "1.83.0.bcr.1", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108300, | ||
) | ||
|
||
bazel_dep(name = "boost.assert", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.container_hash", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.core", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.integer", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.move", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.static_assert", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "rules_cc", version = "0.0.13") |
30 changes: 30 additions & 0 deletions
30
modules/boost.dynamic_bitset/1.83.0.bcr.1/overlay/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "boost.dynamic_bitset", | ||
hdrs = glob( | ||
[ | ||
"include/**/*.hpp", | ||
], | ||
exclude = ["include/boost/dynamic_bitset/detail/**/*.hpp"], | ||
), | ||
features = [ | ||
"parse_headers", | ||
], | ||
includes = ["include"], | ||
textual_hdrs = glob([ | ||
"include/boost/dynamic_bitset/detail/**/*.hpp", | ||
]), | ||
deps = [ | ||
"@boost.assert", | ||
"@boost.config", | ||
"@boost.container_hash", | ||
"@boost.core", | ||
"@boost.integer", | ||
"@boost.move", | ||
"@boost.static_assert", | ||
"@boost.throw_exception", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../MODULE.bazel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2404 | ||
- windows | ||
bazel: [7.x, rolling] | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--process_headers_in_dependencies' | ||
build_targets: | ||
- '@boost.dynamic_bitset//:boost.dynamic_bitset' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"integrity": "sha256-WVdk7ci9FDJinetJ/4fnRSpuQ5MKL/+kJLJUPtzyrYA=", | ||
"strip_prefix": "dynamic_bitset-boost-1.83.0", | ||
"url": "https://github.com/boostorg/dynamic_bitset/archive/refs/tags/boost-1.83.0.tar.gz", | ||
"patch_strip": 0, | ||
"overlay": { | ||
"MODULE.bazel": "sha256-IJOp0JFZuXraZ+03BJL2HHda599QGMi6nGkFPteBPas=", | ||
"BUILD.bazel": "sha256-06+rh/4b6Ka02HI72BndrOAe1MW6wxfSN/H2JAOB8YQ=" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ | |
"github:boostorg/dynamic_bitset" | ||
], | ||
"versions": [ | ||
"1.83.0" | ||
"1.83.0", | ||
"1.83.0.bcr.1" | ||
], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module( | ||
name = "boost.random", | ||
version = "1.83.0.bcr.1", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108300, | ||
) | ||
|
||
bazel_dep(name = "boost.array", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.assert", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.core", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.dynamic_bitset", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.integer", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.io", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.range", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.static_assert", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.system", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.throw_exception", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.type_traits", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "boost.utility", version = "1.83.0.bcr.1") | ||
bazel_dep(name = "rules_cc", version = "0.0.13") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "boost.random", | ||
hdrs = glob( | ||
[ | ||
"include/**/*.hpp", | ||
"include/**/*.ipp", | ||
], | ||
exclude = ["include/boost/random/detail/mixmax_skip_N17.ipp"], | ||
), | ||
features = [ | ||
"parse_headers", | ||
], | ||
includes = ["include"], | ||
textual_hdrs = [ | ||
"include/boost/random/detail/mixmax_skip_N17.ipp", | ||
], | ||
deps = [ | ||
"@boost.array", | ||
"@boost.assert", | ||
"@boost.config", | ||
"@boost.core", | ||
"@boost.dynamic_bitset", | ||
"@boost.integer", | ||
"@boost.io", | ||
"@boost.range", | ||
"@boost.static_assert", | ||
"@boost.system", | ||
"@boost.throw_exception", | ||
"@boost.type_traits", | ||
"@boost.utility", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../MODULE.bazel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2404 | ||
- windows | ||
bazel: [7.x, rolling] | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--process_headers_in_dependencies' | ||
build_targets: | ||
- '@boost.random//:boost.random' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"integrity": "sha256-5qVfaZ7Uy/d5CaYd+MBJGxqt5GxSrnYMDC3zdhkZrV8=", | ||
"strip_prefix": "random-boost-1.83.0", | ||
"url": "https://github.com/boostorg/random/archive/refs/tags/boost-1.83.0.tar.gz", | ||
"patch_strip": 0, | ||
"overlay": { | ||
"MODULE.bazel": "sha256-yr47qCDJWIqcoiVIuIrYxLMHvghWkbKG/w2uikayX6A=", | ||
"BUILD.bazel": "sha256-aeDLQbawdiL7m8WCmTLeV9ktvmKuMZ/zLj7olrLwh4A=" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ | |
"github:boostorg/random" | ||
], | ||
"versions": [ | ||
"1.83.0" | ||
"1.83.0", | ||
"1.83.0.bcr.1" | ||
], | ||
"yanked_versions": {} | ||
} |