Skip to content

Commit ccc4b18

Browse files
anrossigaurav2699
andauthored
cherry-pick: modified cmake to disable xdp for arm architecture (#5343) (#5442)
Co-authored-by: Gaurav Singh <gaurasingh@microsoft.com>
1 parent 15b555d commit ccc4b18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ else()
287287
set(QUIC_LOGGING_TYPE "lttng")
288288
message(STATUS "Choosing lttng as default logging type for platform")
289289
endif()
290+
291+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch64)$")
292+
set(QUIC_LINUX_XDP_ENABLED OFF CACHE BOOL "XDP not supported on ARM architectures" FORCE)
293+
else()
294+
option(QUIC_LINUX_XDP_ENABLED "Enables XDP support" OFF)
295+
endif()
290296

291297
elseif(CX_PLATFORM STREQUAL "darwin")
292298
check_function_exists(sysctl HAS_SYSCTL)

0 commit comments

Comments
 (0)