From ec0c288bc49f53c07d1b5b24d6ad6df810a4debb Mon Sep 17 00:00:00 2001 From: Margen67 Date: Tue, 17 Dec 2024 00:34:09 -0800 Subject: [PATCH] cmake: Replace /Ob2 with /Ob3 See https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion --- projects/cxbx/CMakeLists.txt | 4 ++-- projects/cxbxr-emu/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/cxbx/CMakeLists.txt b/projects/cxbx/CMakeLists.txt index 261edc59cd..3a3dbfa109 100644 --- a/projects/cxbx/CMakeLists.txt +++ b/projects/cxbx/CMakeLists.txt @@ -121,7 +121,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # Reference: https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-alphabetically # /Zi = create a PDB file without affecting optimization - # /Ob2 = Controls inline expansion of functions. + # /Ob3 = Controls inline expansion of functions. # /Oi = Generate intrinsic functions # /Ot = In favor of using fast code than small code # /GL = Whole program optimization @@ -132,7 +132,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # Set optimization options for release build set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \ /Zi \ - /Ob2 \ + /Ob3 \ /Oi \ /Ot \ /GL \ diff --git a/projects/cxbxr-emu/CMakeLists.txt b/projects/cxbxr-emu/CMakeLists.txt index 420b9177da..4329241e25 100644 --- a/projects/cxbxr-emu/CMakeLists.txt +++ b/projects/cxbxr-emu/CMakeLists.txt @@ -131,7 +131,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # Set optimization options for release build set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \ /Zi \ - /Ob2 \ + /Ob3 \ /Oi \ /Ot \ /GL \ @@ -144,7 +144,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") endif() # Windows libraries -set(WINS_LIB +set(WINS_LIB legacy_stdio_definitions d3d9 d3dcompiler