Skip to content

Commit

Permalink
Update Bazel support
Browse files Browse the repository at this point in the history
* Update dependencies in MODULE.bazel and WORKSPACE
* Add a .bazelrc with default options (similar to the one in pybind11_protobuf)

PiperOrigin-RevId: 715755470
  • Loading branch information
Mizux authored and copybara-github committed Jan 15, 2025
1 parent 11b801f commit a2db412
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pybind11_abseil/bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Enable logging rc options.
common --announce_rc

# Enable verbose failures for testing only.
build --verbose_failures

# Abseil requires C++14 at minimum.
build --enable_platform_specific_config
build:linux --cxxopt=-std=c++14
build:macos --cxxopt=-std=c++14
build:windows --cxxopt=/std:c++14

# Enable logging error output.
test --test_output=errors
test --test_summary=detailed

# https://bazel.build/configure/best-practices#bazelrc-file
try-import %workspace%/user.bazelrc

0 comments on commit a2db412

Please sign in to comment.