mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user