Skip to content

Commit 6f32d89

Browse files
authored
Merge pull request Cxbx-Reloaded#2474 from Margen67/build
cmake: Replace /Ob2 with /Ob3
2 parents 8bfbcb5 + ec0c288 commit 6f32d89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/cxbx/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
121121

122122
# Reference: https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-alphabetically
123123
# /Zi = create a PDB file without affecting optimization
124-
# /Ob2 = Controls inline expansion of functions.
124+
# /Ob3 = Controls inline expansion of functions.
125125
# /Oi = Generate intrinsic functions
126126
# /Ot = In favor of using fast code than small code
127127
# /GL = Whole program optimization
@@ -132,7 +132,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
132132
# Set optimization options for release build
133133
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \
134134
/Zi \
135-
/Ob2 \
135+
/Ob3 \
136136
/Oi \
137137
/Ot \
138138
/GL \

projects/cxbxr-emu/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
131131
# Set optimization options for release build
132132
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \
133133
/Zi \
134-
/Ob2 \
134+
/Ob3 \
135135
/Oi \
136136
/Ot \
137137
/GL \
@@ -144,7 +144,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
144144
endif()
145145

146146
# Windows libraries
147-
set(WINS_LIB
147+
set(WINS_LIB
148148
legacy_stdio_definitions
149149
d3d9
150150
d3dcompiler

0 commit comments

Comments
 (0)