We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cdd36c commit 921e01fCopy full SHA for 921e01f
1 file changed
include/stdexec/__detail/__config.hpp
@@ -402,8 +402,8 @@ namespace STDEXEC::__std
402
#endif
403
404
#if STDEXEC_MSVC()
405
-# define STDEXEC_PRAGMA_OPTIMIZE_BEGIN() STDEXEC_PRAGMA(optimize("", on))
406
-# define STDEXEC_PRAGMA_OPTIMIZE_END() STDEXEC_PRAGMA(optimize("", off))
+# define STDEXEC_PRAGMA_OPTIMIZE_BEGIN() STDEXEC_PRAGMA(optimize("t", on))
+# define STDEXEC_PRAGMA_OPTIMIZE_END() STDEXEC_PRAGMA(optimize("", on))
407
#else
408
# define STDEXEC_PRAGMA_OPTIMIZE_BEGIN() STDEXEC_PRAGMA(GCC push_options) \
409
STDEXEC_PRAGMA(GCC optimize("O3"))
0 commit comments