Skip to content

Commit

Permalink
update bazel version
Browse files Browse the repository at this point in the history
  • Loading branch information
liubang committed Jun 20, 2024
1 parent fee9912 commit eb76049
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 30 deletions.
7 changes: 0 additions & 7 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
common --color=yes
common --experimental_ui_max_stdouterr_bytes=1073741819

# Enable Bzlmod
build:bzlmod --enable_bzlmod
build:bzlmod --check_direct_dependencies=error

# bazel build
build --config=bzlmod

# bazel test
test --test_output=all --action_env="GTEST_COLOR=1"
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.2.0
29 changes: 23 additions & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
#======================================================================
# Copyright (c) 2024 The Authors. All rights reserved.
#
# MODULE.bazel -
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# Created by liubang on 2023/04/08 15:28
# Last Modified: 2023/04/08 15:28
# https://www.apache.org/licenses/LICENSE-2.0
#
#======================================================================
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Authors: liubang ([email protected])

module(
name = "leetcode",
version = "0.0.1",
)

bazel_dep(name = "googletest", version = "1.12.1")
bazel_dep(name = "googletest", version = "1.14.0")

# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
commit = "a14ad3a64e7bf398ab48105aaa0348e032ac87f8",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
)
114 changes: 114 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions WORKSPACE

This file was deleted.

0 comments on commit eb76049

Please sign in to comment.