summaryrefslogtreecommitdiff
path: root/src/third_party/SConscript
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2020-07-23 21:39:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-23 21:52:22 +0000
commitd986854f5ec4fda16d22baab2d380b202626661f (patch)
treee477ddeb82864d951a3a94cadfc76709cf78730d /src/third_party/SConscript
parent2af311b7cbd17ecdddef919acac8d22f96391686 (diff)
downloadmongo-d986854f5ec4fda16d22baab2d380b202626661f.tar.gz
SERVER-48638 Added LibdepsLinter to enforce LIBDEPS rules
Diffstat (limited to 'src/third_party/SConscript')
-rw-r--r--src/third_party/SConscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/third_party/SConscript b/src/third_party/SConscript
index 081b68fb820..f56bcd4f42c 100644
--- a/src/third_party/SConscript
+++ b/src/third_party/SConscript
@@ -229,15 +229,17 @@ for builder_name in ('Program', 'SharedLibrary', 'LoadableModule', 'StaticLibrar
# OverrideEnvironment, since if you didn't pass any kw args
# into your builder call, you just reuse the env you were
# called with. That could mean that we see the same
- # envirnoment here multiple times. But that is really OK,
+ # environment here multiple times. But that is really OK,
# since the operation we are performing would be performed on
# all of them anyway. The flag serves as a way to disable the
# auto-injection for the handful of libraries where we must do
# so to avoid forming a cycle.
if not env.get('DISABLE_ALLOCATOR_SHIM_INJECTION', False):
lds = env.get('LIBDEPS', [])
- lds.append('$BUILD_DIR/third_party/shim_allocator')
- env['LIBDEPS'] = lds
+ shim_allocator = '$BUILD_DIR/third_party/shim_allocator'
+ if shim_allocator not in lds:
+ lds.append(shim_allocator)
+ env['LIBDEPS'] = lds
return target, source