summaryrefslogtreecommitdiff
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
parent35a20b4134d98e63e22a4879330c03f2f6577ece (diff)
downloadmongo-e438cd45c0a799a465322dd8b39beff8ac592d64.tar.gz
SERVER-62234 Address small issues when building in C++20 with VS 2022
-rw-r--r--SConstruct6
-rw-r--r--src/third_party/mozjs/SConscript3
2 files changed, 7 insertions, 2 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
diff --git a/src/third_party/mozjs/SConscript b/src/third_party/mozjs/SConscript
index aa958ce14c0..ba1afcd6793 100644
--- a/src/third_party/mozjs/SConscript
+++ b/src/third_party/mozjs/SConscript
@@ -68,8 +68,7 @@ if env.TargetOSIs('windows'):
# 'operator': unsafe use of type 'type' in operation
'/wd4804',
- ],
- CXXFLAGS=[
+
# TODO(SERVER-59417): Override any potentially applied
# C++20 switch to unconditionally build in C++17 mode, at
# least until MozJS is upgraded to an ESR that can be