From b5229f72d5df7663002b337761fee86a36292d9a Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 29 Jan 2026 20:06:18 +0300 Subject: [PATCH] removed unity build completely --- CMakeLists.txt | 7 ------- source/utility/pe_pattern_scan.cpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d382cc..6d95a37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,6 @@ option(OMATH_IMGUI_INTEGRATION "Omath will define method to convert omath types option(OMATH_BUILD_EXAMPLES "Build example projects with you can learn & play" OFF) option(OMATH_STATIC_MSVC_RUNTIME_LIBRARY "Force Omath to link static runtime" OFF) option(OMATH_SUPRESS_SAFETY_CHECKS "Supress some safety checks in release build to improve general performance" ON) -option(OMATH_USE_UNITY_BUILD "Will enable unity build to speed up compilation" OFF) option(OMATH_ENABLE_LEGACY "Will enable legacy classes that MUST be used ONLY for backward compatibility" ON) option(OMATH_ENABLE_COVERAGE "Enable coverage" OFF) option(OMATH_ENABLE_FORCE_INLINE "Will for compiler to make some functions to be force inlined no matter what" ON) @@ -122,12 +121,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 23 CXX_STANDARD_REQUIRED ON) -if (OMATH_USE_UNITY_BUILD) - set_target_properties(${PROJECT_NAME} PROPERTIES - UNITY_BUILD ON - UNITY_BUILD_BATCH_SIZE 20) -endif () - if (OMATH_STATIC_MSVC_RUNTIME_LIBRARY) set_target_properties(${PROJECT_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>" diff --git a/source/utility/pe_pattern_scan.cpp b/source/utility/pe_pattern_scan.cpp index a3d202e..58ec379 100644 --- a/source/utility/pe_pattern_scan.cpp +++ b/source/utility/pe_pattern_scan.cpp @@ -237,7 +237,7 @@ namespace variant); } - struct ExtractedSection + struct ExtractedSection final { std::uintptr_t virtual_base_addr; std::uintptr_t raw_base_addr;