summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/scripting/SConscript9
-rw-r--r--src/mongo/shell/SConscript9
-rw-r--r--src/third_party/benchmark/SConscript9
3 files changed, 26 insertions, 1 deletions
diff --git a/src/mongo/scripting/SConscript b/src/mongo/scripting/SConscript
index 34a9d9e3f6e..81c3f08143e 100644
--- a/src/mongo/scripting/SConscript
+++ b/src/mongo/scripting/SConscript
@@ -53,6 +53,15 @@ env.Library(
if usemozjs:
scriptingEnv = env.Clone()
+
+ scriptingEnv.Append(
+ CXXFLAGS=[
+ # TODO(SERVER-59992): Remove -Wno-class-memacces where possible.
+ '-Wno-unknown-warning-option',
+ '-Wno-class-memaccess',
+ ],
+ )
+
scriptingEnv.InjectMozJS()
scriptingEnv.JSHeader(
diff --git a/src/mongo/shell/SConscript b/src/mongo/shell/SConscript
index 5aaf1273338..259acb23846 100644
--- a/src/mongo/shell/SConscript
+++ b/src/mongo/shell/SConscript
@@ -182,6 +182,15 @@ if get_option('ssl') == 'on':
if get_option('js-engine') != 'none':
scriptingEnv = env.Clone()
+
+ scriptingEnv.Append(
+ CXXFLAGS=[
+ # TODO(SERVER-59992): Remove -Wno-class-memacces where possible.
+ '-Wno-unknown-warning-option',
+ '-Wno-class-memaccess',
+ ],
+ )
+
scriptingEnv.InjectMozJS()
scriptingEnv.Library(
diff --git a/src/third_party/benchmark/SConscript b/src/third_party/benchmark/SConscript
index f4841f3631b..dbbcb5fef3f 100644
--- a/src/third_party/benchmark/SConscript
+++ b/src/third_party/benchmark/SConscript
@@ -12,7 +12,14 @@ if env.TargetOSIs('windows'):
env.Append(LIBS=["ShLwApi"])
-env.Append(CPPDEFINES=["HAVE_STD_REGEX"])
+env.Append(
+ CPPDEFINES=["HAVE_STD_REGEX"],
+ CXXFLAGS=[
+ # TODO(SERVER-59996): Fix warnings with -Wstringop-truncation when possible
+ '-Wno-unknown-warning-option',
+ '-Wno-stringop-truncation',
+ ],
+)
src_dir=env.Dir('dist/src')