From 18f353cba65831ef6d4cff5e77d8bf18b0bd0769 Mon Sep 17 00:00:00 2001 From: zhouhuang Date: Thu, 26 Dec 2024 14:54:03 +0800 Subject: [PATCH] update --- das-dn/CMakeLists.txt | 6 ++---- das-dn/third_party/AdsLib/Sockets.cpp | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/das-dn/CMakeLists.txt b/das-dn/CMakeLists.txt index 2dcea1da..00ec2e22 100644 --- a/das-dn/CMakeLists.txt +++ b/das-dn/CMakeLists.txt @@ -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") diff --git a/das-dn/third_party/AdsLib/Sockets.cpp b/das-dn/third_party/AdsLib/Sockets.cpp index a9059b83..3accfde0 100644 --- a/das-dn/third_party/AdsLib/Sockets.cpp +++ b/das-dn/third_party/AdsLib/Sockets.cpp @@ -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);