summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2022-01-13 01:40:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-13 02:23:45 +0000
commita632623f2e86e8e71104d43481a85b695a0c21b6 (patch)
tree4f14881a3665628b60535818066634d2824d265a /SConstruct
parent503acbbdd3e02fabb2fbc38c8e499df1d7559500 (diff)
downloadmongo-a632623f2e86e8e71104d43481a85b695a0c21b6.tar.gz
SERVER-62480 disable new lambda processor in MSVC2022 C++20 mode
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c5113604c86..38baba8e897 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3648,6 +3648,12 @@ def doConfigure(myenv):
#
myenv.Append( CCFLAGS=["/Zc:inline"])
+ if myenv.ToolchainIs('msvc') and get_option('cxx-std') == "20":
+ # Disable the updated lambda processor, which is on by default in
+ # /std:C++20 mode. The new lambda processor cannot compile the nested
+ # lambda expression usage in util/future_test_* files. See
+ # SERVER-62480. Must appear after `/std:c++20` to override it.
+ env.Append( CCFLAGS=["/Zc:lambda-"] )
if myenv.ToolchainIs('gcc', 'clang'):