summaryrefslogtreecommitdiff
path: root/src/third_party/libbson/SConscript
diff options
context:
space:
mode:
authorauto-revert-processor <dev-prod-dag@mongodb.com>2023-05-03 10:20:43 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-03 11:18:57 +0000
commit772fb2aff2b49da52b26c4240bd366eb576396f7 (patch)
tree6136bed2c38f84ac748053e659872bccdbc48cc5 /src/third_party/libbson/SConscript
parent47f11cb89f5d1aabc3e7121868ca454babb0f681 (diff)
downloadmongo-772fb2aff2b49da52b26c4240bd366eb576396f7.tar.gz
Revert "SERVER-76643 do not print warnings from building rdkafka or libbson"
This reverts commit 61cfb094c61b3d23566718c0c130074f711ea61d.
Diffstat (limited to 'src/third_party/libbson/SConscript')
-rw-r--r--src/third_party/libbson/SConscript19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/third_party/libbson/SConscript b/src/third_party/libbson/SConscript
index ff39da6acd9..d83660df4c3 100644
--- a/src/third_party/libbson/SConscript
+++ b/src/third_party/libbson/SConscript
@@ -3,15 +3,16 @@ Import("env")
env = env.Clone()
-env.Append(
- CPPDEFINES=['BSON_COMPILATION'],
- CPPPATH=["dist/src/common"],
-)
+env.Append(CPPDEFINES=[
+ 'BSON_COMPILATION',
+])
+env.Append(CPPPATH=["dist/src/common"])
+
+# Libbson is not warning clean
+env['CCFLAGS_WERROR'] = []
+env['CXXFLAGS_WERROR'] = []
-if env.ToolchainIs('msvc'):
- env.Append(CCFLAGS=['/wd4388', '/wd4389', '/wd4146', '/wd4018']) # msvc sign-compare warnings
-else:
- env.Append(CCFLAGS=['-Wno-sign-compare'])
+additional_sources = []
env.Library(
target="libbson",
@@ -41,7 +42,7 @@ env.Library(
'dist/src/libbson/src/bson/bson-version-functions.c',
'dist/src/libbson/src/bson/bson-writer.c',
'dist/src/libbson/src/jsonsl/jsonsl.c',
- ],
+ ] + additional_sources,
LIBDEPS_TAGS=[
'init-no-global-side-effects',
],