summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-06-23 00:57:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-23 01:48:49 +0000
commit09d251fb165d7f5976ed707a3ed16d12f6da945f (patch)
treeb411a313fc59786aebcd11f697baffb4d01d94b0
parentc798b60a95cbcf43145a5c31061b553ba86bd2e0 (diff)
downloadmongo-09d251fb165d7f5976ed707a3ed16d12f6da945f.tar.gz
SERVER-67069 added /Zc:lambda for windows in cxx17
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index be896517841..387397f26d2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3559,7 +3559,8 @@ def doConfigure(myenv):
if myenv.ToolchainIs('msvc'):
if get_option('cxx-std') == "17":
- myenv.AppendUnique(CCFLAGS=['/std:c++17'])
+ myenv.AppendUnique(CCFLAGS=['/std:c++17',
+ '/Zc:lambda']) # /Zc:lambda is implied by /std:c++20
elif get_option('cxx-std') == "20":
myenv.AppendUnique(CCFLAGS=['/std:c++20'])
else: