Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ if(STL_USE_ANALYZE)
endif()

set(VCLIBS_DEBUG_OPTIONS "$<$<COMPILE_LANGUAGE:CXX>:/Od>")

# TRANSITION, GH-2108: Investigate building the STL with only /O2, not /Os.
set(VCLIBS_RELEASE_OPTIONS "$<$<COMPILE_LANGUAGE:CXX>:/O2;/Os>")
set(VCLIBS_RELEASE_OPTIONS "$<$<COMPILE_LANGUAGE:CXX>:/O2>")

if(CONFIGURE_TESTING)
add_subdirectory(tests)
Expand Down
4 changes: 0 additions & 4 deletions stl/src/vector_algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#error _M_CEE_PURE should not be defined when compiling vector_algorithms.cpp.
#endif

#ifndef _DEBUG
#pragma optimize("t", on) // TRANSITION, GH-2108: Override /Os with /Ot for this TU before any function definitions
Comment thread
StephanTLavavej marked this conversation as resolved.
#endif

#include <__msvc_minmax.hpp>
#include <cstdint>
#include <cstring>
Expand Down