Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 4 additions & 2 deletions source/common/quic/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ envoy_cc_library(
"//source/common/network:io_socket_error_lib",
"//source/common/protobuf:utility_lib",
"//source/common/runtime:runtime_lib",
"@com_github_google_quiche//:quic_core_batch_writer_gso_batch_writer_lib",
],
] + select({
"//bazel:linux": ["@com_github_google_quiche//:quic_core_batch_writer_gso_batch_writer_lib"],
"//conditions:default": [],
}),
)

envoy_cc_library(
Expand Down
3 changes: 3 additions & 0 deletions source/common/quic/udp_gso_batch_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif

#if defined(__linux__)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix the build? There are other places in this file refers to quic classes.
Why not excluding this header file completely in the BUILD if the platform is not Linux?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, sorry, I had commented out most of the file in a prior build which got lost.

So I can add that back, moving the endif to the bottom of the file, or we could have one file for setting UDP_GSO_BATCH_WRITER_COMPILETIME_SUPPORT and a second file for use of it.

which would you prefer?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay either way, maybe the latter is easier to understand?

#include "quiche/quic/core/batch_writer/quic_gso_batch_writer.h"

#endif

#ifdef __clang__
#pragma clang diagnostic pop
#endif
Expand Down