diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2020-09-25 03:33:43 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-25 03:53:51 +0000 |
commit | cbd3c227eb3337c78a52779fe59394f333cf7bd3 (patch) | |
tree | 7f7129b2d08cd3924b998be115b7ffe11bea2949 /SConstruct | |
parent | 8c10427af37213b391420aa8f9e160e435961920 (diff) | |
download | mongo-cbd3c227eb3337c78a52779fe59394f333cf7bd3.tar.gz |
SERVER-50258 Added libdeps rule to enforce that DEPS_DEPENDENTS are actually built and split libdeps into next version
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index cf7bd716727..adb716f845c 100644 --- a/SConstruct +++ b/SConstruct @@ -1729,6 +1729,11 @@ if env['_LIBDEPS'] == '$_LIBDEPS_OBJS': # command but instead runs a function. env["BUILDERS"]["StaticLibrary"].action = SCons.Action.Action(write_uuid_to_file, "Generating placeholder library $TARGET") +if get_option('build-tools') == 'next': + import libdeps_next +else: + import libdeps + libdeps.setup_environment( env, emitting_shared=(link_model.startswith("dynamic")), @@ -4790,3 +4795,8 @@ env.NoCache(env.FindInstalledFiles()) # because SCons wants it to be a particular object. for i, s in enumerate(BUILD_TARGETS): BUILD_TARGETS[i] = env.subst(s) + +# Do any final checks the Libdeps linter may need to do once all +# SConscripts have been read but before building begins. +if get_option('build-tools') == 'next': + libdeps.LibdepLinter(env).final_checks()
\ No newline at end of file |