summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2020-09-03 12:44:39 -0700
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-03 22:33:38 +0000
commit4d43e298fe956c57b3cb0310bcd0785c19f75ef7 (patch)
tree821a9632ef1e392986fec33c590d0ba4235e119b /SConstruct
parent8db9cd370aeefacb64c035c92b1ebd8bfb9e8ce5 (diff)
downloadmongo-4d43e298fe956c57b3cb0310bcd0785c19f75ef7.tar.gz
SERVER-50376 Ninja should rebuild on compiler and tool changes
Allow Ninja to rebuild build.ninja any time a SCons tool or the compiler is changed between iterative rebuilds. This change allows us to ensure that we don't have any stale object files lying around that may have been produced by an incompatible toolchain.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index d0c9bb90889..385a862b489 100644
--- a/SConstruct
+++ b/SConstruct
@@ -4100,9 +4100,9 @@ if get_option('ninja') != 'disabled':
)
def get_idlc_command(env, node, action, targets, sources, executor=None):
- _, variables = env.NinjaGetShellCommand(node, action, targets, sources, executor=executor)
+ _, variables, _ = env.NinjaGetGenericShellCommand(node, action, targets, sources, executor=executor)
variables["msvc_deps_prefix"] = "import file:"
- return "IDLC", variables
+ return "IDLC", variables, env.subst(env['IDLC']).split()
env.NinjaRuleMapping("$IDLCCOM", get_idlc_command)
env.NinjaRuleMapping(env["IDLCCOM"], get_idlc_command)