Skip to content

Commit

Permalink
Explicitly fail windows build when the wrong QuicServerBackend file i…
Browse files Browse the repository at this point in the history
…s used

Summary: As title.

Reviewed By: kvtsoy, sharmafb

Differential Revision: D68281935

fbshipit-source-id: bcb0c309869a4270aaf62a01a337c86476755863
  • Loading branch information
jbeshay authored and facebook-github-bot committed Jan 17, 2025
1 parent 5d6bd2e commit bf2b2fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quic/server/QuicServerBackendIoUring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

#include <folly/io/async/IoUringBackend.h>

#ifdef _WIN32
#error \
"This file should not be included on Windows. Use QuicServerBackend.cpp to get more accurate timers on Windows."
#endif

#if !FOLLY_MOBILE && __has_include(<liburing.h>)

DEFINE_int32(
Expand Down

0 comments on commit bf2b2fe

Please sign in to comment.