mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
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:
committed by
Copybara-Service
parent
cd765c9dd1
commit
f4fdd8d615
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user