Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarred Sumner
2025-08-04 21:29:25 -07:00
parent 8abae4c5ca
commit cee00d3a8a
3 changed files with 12 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ if(GIT_NAME STREQUAL "lsquic")
# Clone the repository
execute_process(
COMMAND
${GIT_PROGRAM} clone https://github.com/${GIT_REPOSITORY}.git ${GIT_PATH}
${GIT_PROGRAM} clone https://github.com/${GIT_REPOSITORY}.git --depth 1 --shallow-submodules --recurse-submodules --single-branch ${GIT_PATH}
ERROR_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE
GIT_ERROR

View File

@@ -7,6 +7,12 @@ register_repository(
70486141724f85e97b08f510673e29f399bbae8f
)
set(Lsquic_CMAKE_C_FLAGS "")
if (ENABLE_ASAN)
STRING(APPEND Lsquic_CMAKE_C_FLAGS "-fsanitize=address")
endif()
register_cmake_command(
TARGET
lsquic
@@ -22,6 +28,11 @@ register_cmake_command(
-DZLIB_INCLUDE_DIR=${VENDOR_PATH}/zlib
-DZLIB_LIB=${BUILD_PATH}/zlib/libz.a
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_C_FLAGS="${Lsquic_CMAKE_C_FLAGS}"
-DLSQUIC_BIN=OFF
-DLSQUIC_TESTS=OFF
-DLSQUIC_WEBTRANSPORT=OFF
INCLUDES
include
src/liblsquic

View File

@@ -315,7 +315,6 @@ void on_udp_socket_data(struct us_udp_socket_t *s, struct us_udp_packet_buffer_t
/* Let's use this on Windows and macOS where it is not defined (todo: put in bsd.h) */
#ifndef UIO_MAXIOV
#define UIO_MAXIOV 1024
#endif
/* Server and client packet out is identical */