Skip to content

Commit b7964a6

Browse files
committed
[bazel] Bump to Bazel 8
1 parent 481a430 commit b7964a6

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.bazelrc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ try-import %workspace%/.bazelrc.windows.local
88
# https://github.com/bazelbuild/bazel/issues/20369
99
# https://github.com/bazelbuild/bazel/issues/21491
1010

11-
common --lockfile_mode=off
12-
13-
# Prepare for Bazel 8. These become the default in 8.0.0
14-
common --incompatible_disallow_empty_glob
15-
common --incompatible_use_plus_in_repo_names
11+
# Required for rules_closure
12+
common --enable_workspace
13+
common --noincompatible_disallow_struct_provider_syntax
1614

1715
# Ensure Windows support is accurate.
1816

@@ -44,7 +42,7 @@ build --javacopt="-Xep:ImpossibleNullComparison:OFF"
4442
build --nobuild_runfile_links
4543

4644
# More JS magic
47-
build --experimental_allow_unresolved_symlinks
45+
build --allow_unresolved_symlinks
4846
# Avoid a warning about directory tracking being unsound
4947
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
5048

@@ -63,8 +61,8 @@ build --incompatible_strict_action_env
6361

6462
# Required to get `protobuf` compiling, which is required for `rules_closure`
6563
build --incompatible_enable_cc_toolchain_resolution
66-
build --cxxopt=-std=c++14
67-
build --host_cxxopt=-std=c++14
64+
build --cxxopt=-std=c++17
65+
build --host_cxxopt=-std=c++17
6866

6967
# For build stamping
7068

@@ -114,7 +112,6 @@ test --test_timeout=1800
114112
test:node_debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
115113
test:ruby_debug --test_output=streamed --test_env=RUBY_DEBUG_FORK_MODE=parent --run_under="@bundle//bin:rdbg --nonstop --open --command"
116114

117-
118115
build:release --stamp
119116
build:release --compilation_mode=opt
120117

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.4.1
1+
8.1.1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ MODULE.bazel.lock
133133
/.vscode/
134134
/.scannerwork/
135135
/.bazelrc.local
136+
/MODULE.bazel.lock
136137

137138
# Engflow
138139
*.crt

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bazel_dep(name = "rules_cc", version = "0.1.1", dev_dependency = True)
1919

2020
bazel_dep(name = "rules_dotnet", version = "0.17.5")
2121
bazel_dep(name = "rules_java", version = "8.7.1")
22-
bazel_dep(name = "rules_jvm_external", version = "6.6")
22+
bazel_dep(name = "rules_jvm_external", version = "6.7")
2323
bazel_dep(name = "rules_nodejs", version = "6.3.2")
2424
bazel_dep(name = "rules_oci", version = "1.8.0")
2525
bazel_dep(name = "rules_pkg", version = "1.0.1")

0 commit comments

Comments
 (0)