We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6feed6e commit 4e5071eCopy full SHA for 4e5071e
indra/cmake/00-Common.cmake
@@ -97,10 +97,10 @@ if (WINDOWS)
97
/permissive-
98
)
99
100
- # Nicky: x64 implies SSE2
101
- if( ADDRESS_SIZE EQUAL 32 )
102
- add_compile_options( /arch:SSE2 )
103
- endif()
+ # We want aggressive inlining on MSVC to better match clang/gcc at O3
+ string(REPLACE "/Ob2" "/Ob3" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ string(REPLACE "/Ob2" "/Ob3" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
+ string(REPLACE "/Ob2" "/Ob3" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
104
105
# Are we using the crummy Visual Studio KDU build workaround?
106
if (NOT VS_DISABLE_FATAL_WARNINGS)
0 commit comments