Skip to content

Commit 3dbd5e4

Browse files
committed
Update Bazel configuration and dependencies
- Bump Bazel version to 7.6.1 in .bazeliskrc - Add common flag for Bazel module support in .bazelrc - Include MODULE.bazel file for module definition - Add WORKSPACE.bzlmod file for module workspace - Update BUILD file to include necessary headers - Add MODULE.bazel.lock to .gitignore Signed-off-by: Matthieu MOREL <[email protected]>
1 parent bc02d7b commit 3dbd5e4

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed

.bazeliskrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# for running Bazel commands while ensuring, through configuration, that only a
77
# specific version of Bazel is executed.
88

9-
USE_BAZEL_VERSION=7.2.1
9+
USE_BAZEL_VERSION=7.6.1

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# By default, build ICU4C as C11 & C++17.
55

6+
common --enable_bzlmod
7+
68
build --enable_platform_specific_config
79

810
build:android --conlyopt=-std=c11

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
*_debug
3636
*_release
3737
bazel-*
38+
MODULE.bazel.lock
3839
cygicudata*
3940
libicu*
4041
libicutest*

MODULE.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module(
2+
name = "icu",
3+
version = "77.2-dev",
4+
)
5+
6+
bazel_dep(
7+
name = "rules_cc",
8+
version = "0.2.2",
9+
)
10+
bazel_dep(
11+
name = "platforms",
12+
version = "1.0.0",
13+
)
14+
15+
# -- bazel_dep definitions -- #
16+
17+
# -- use_repo_rule statements -- #
18+
19+
# -- repo definitions -- #

WORKSPACE.bzlmod

Whitespace-only changes.

vendor/double-conversion/upstream/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ cc_library(
3232
"double-conversion/strtod.h",
3333
"double-conversion/utils.h",
3434
],
35+
includes = ["."],
3536
linkopts = [
3637
"-lm",
3738
],

0 commit comments

Comments
 (0)