Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not link abseil interface targets #2592

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions config_brpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ PROTOBUF_VERSION=$(grep '#define GOOGLE_PROTOBUF_VERSION [0-9]\+' $PROTOBUF_HDR/
if [ "$PROTOBUF_VERSION" -ge 4022000 ]; then
ABSL_HDR=$(find_dir_of_header_or_die absl/base/config.h)
ABSL_LIB=$(find_dir_of_lib_or_die absl_strings)
ABSL_LIB_NAMES="
ABSL_TARGET_NAMES="
absl_bad_optional_access
absl_bad_variant_access
absl_base
Expand Down Expand Up @@ -333,8 +333,11 @@ if [ "$PROTOBUF_VERSION" -ge 4022000 ]; then
absl_time
absl_time_zone
"
for i in $ABSL_LIB_NAMES; do
append_linking "$ABSL_LIB" "$i"
for i in $ABSL_TARGET_NAMES; do
# ignore interface targets
if [ -n "$(find_dir_of_lib $i)" ]; then
append_linking "$ABSL_LIB" "$i"
fi
done
CXXFLAGS="-std=c++17"
else
Expand Down
Loading