This commit is contained in:
zhouhuang 2024-12-26 14:54:03 +08:00
parent b56230fc42
commit 18f353cba6
2 changed files with 2 additions and 5 deletions

View File

@ -20,7 +20,7 @@ if (USE_SQLITE3)
endif ()
endif ()
set (CMAKE_BUILD_TYPE "Release")
set (CMAKE_BUILD_TYPE Release)
option (USE_32BITS "Build 32Bits application?" OFF)
if (USE_32BITS)
@ -34,9 +34,7 @@ else ()
message (STATUS "Using 64Bits Platform")
add_definitions(-DNOPOLL_64BIT_PLATFORM)
endif (USE_32BITS)
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
SET (CMAKE_BUILD_TYPE "Debug")
endif ()
if (CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
add_compile_options ("-O0")
add_compile_options ("-Wall")

View File

@ -153,7 +153,6 @@ Socket::Socket(const struct addrinfo* const host, const int type) :
Socket::~Socket()
{
LOG_ERROR("destroy socket\n");
Shutdown();
// closesocket(m_Socket);