diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2020-07-23 21:39:20 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-23 21:52:22 +0000 |
commit | d986854f5ec4fda16d22baab2d380b202626661f (patch) | |
tree | e477ddeb82864d951a3a94cadfc76709cf78730d /src/third_party | |
parent | 2af311b7cbd17ecdddef919acac8d22f96391686 (diff) | |
download | mongo-d986854f5ec4fda16d22baab2d380b202626661f.tar.gz |
SERVER-48638 Added LibdepsLinter to enforce LIBDEPS rules
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/SConscript | 8 |
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 |