From: Adam Retter Date: Thu, 29 Jan 2026 20:44:27 +0000 (-0800) Subject: Fixes the Windows VS 2022 build (#14280) X-Git-Tag: v10.10.1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4d93a17d2792ed3ad58e756a18845b158868175;p=rocksdb.git Fixes the Windows VS 2022 build (#14280) Summary: When building a Release on Windows RTTI is not available, so asserts that use dynamic_cast need to be disabled Pull Request resolved: https://github.com/facebook/rocksdb/pull/14280 Reviewed By: nmk70 Differential Revision: D91807791 Pulled By: mszeszko-meta fbshipit-source-id: e29c19c757bcd076a1f09ed40b306bb50ba9e882 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 03837b672..c0194e58d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,10 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi /nologo /EHsc /GS /Gd /GR /GF /fp:precise /Zc:wchar_t /Zc:forScope /errorReport:queue") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W4 /wd4127 /wd4996 /wd4100 /wd4324") endif() + if(CMAKE_BUILD_TYPE STREQUAL "Release") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNDEBUG") + message(STATUS "Setting /DNDEBUG as CMAKE_BUILD_TYPE is set to ${CMAKE_BUILD_TYPE}") + endif() else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wextra -Wall -pthread") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof") diff --git a/HISTORY.md b/HISTORY.md index 9f440849b..239213d4c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,10 @@ # Rocksdb Change Log > NOTE: Entries for next release do not go here. Follow instructions in `unreleased_history/README.txt` +## 10.10.1 (02/02/2026) +### Bug Fixes +* Fix Windows VS 2022 build errors. + ## 10.10.0 (12/16/2025) ### Bug Fixes * Fixed a bug in best-efforts recovery that causes use-after-free crashes when accessing SST files that were cached during the recovery. diff --git a/include/rocksdb/version.h b/include/rocksdb/version.h index 7cc7a3de9..2ceb639d6 100644 --- a/include/rocksdb/version.h +++ b/include/rocksdb/version.h @@ -13,7 +13,7 @@ // minor or major version number planned for release. #define ROCKSDB_MAJOR 10 #define ROCKSDB_MINOR 10 -#define ROCKSDB_PATCH 0 +#define ROCKSDB_PATCH 1 // Make it easy to do conditional compilation based on version checks, i.e. // #if ROCKSDB_VERSION_GE(4, 5, 6)