SERVER-67069 added /Zc:lambda for windows in cxx17

This commit is contained in:
Alexander Neben 2022-06-23 00:57:15 +00:00 committed by Evergreen Agent
parent c798b60a95
commit 09d251fb16
1 changed files with 2 additions and 1 deletions

View File

@ -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: