summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2022-01-04 18:08:42 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-05 21:09:25 +0000
commite438cd45c0a799a465322dd8b39beff8ac592d64 (patch)
treeb6572ffeac130ff89d767e96e3cbeef833a92e45 /SConstruct
parent35a20b4134d98e63e22a4879330c03f2f6577ece (diff)
downloadmongo-e438cd45c0a799a465322dd8b39beff8ac592d64.tar.gz
SERVER-62234 Address small issues when building in C++20 with VS 2022
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 03dfdff4b91..9fd6e0b6db7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2100,6 +2100,12 @@ elif env.TargetOSIs('windows'):
"_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING",
"_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING",
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
+
+ # TODO(SERVER-60151): Until we are fully in C++20 mode, it is
+ # easier to simply suppress C++20 deprecations. After we have
+ # switched over we should address any actual deprecated usages
+ # and then remove this flag.
+ "_SILENCE_ALL_CXX20_DEPRECATION_WARNINGS",
])
# /EHsc exception handling style for visual studio