Add --define="absl=1" to the Bazel build commands in CI

This is to allow using Abseil in GoogleTest, which would allow use of RE2.

PiperOrigin-RevId: 865975476
Change-Id: Ifdf62384b82a14e0fb569076333bee96647e7c1f
This commit is contained in:
Abseil Team
2026-02-05 09:07:42 -08:00
committed by Copybara-Service
parent cd765c9dd1
commit f4fdd8d615
3 changed files with 3 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ for std in ${STD}; do
--copt=\"-fno-sanitize-recover=${UBSAN_CHECKS}\" \
--copt=\"-fno-sanitize-blacklist\" \
--copt=-Werror \
--define=\"absl=1\" \
--enable_bzlmod=true \
--features=external_include_paths \
--keep_going \

View File

@@ -89,6 +89,7 @@ for std in ${STD}; do
--copt=\"-fsanitize=thread\" \
--copt=\"-fno-sanitize-blacklist\" \
--copt=-Werror \
--define=\"absl=1\" \
--enable_bzlmod=true \
--features=external_include_paths \
--keep_going \

View File

@@ -57,6 +57,7 @@ fi
${BAZEL_BIN} test ... \
--copt="-DGTEST_REMOVE_LEGACY_TEST_CASEAPI_=1" \
--copt="-Werror" \
--define="absl=1" \
--cxxopt="-std=c++17" \
--enable_bzlmod=true \
--features=external_include_paths \