summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2020-01-30 14:59:41 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-01-31 17:07:09 +0000
commit4dfbe1988c96cc0c46999095d3f1bbfd47ed2160 (patch)
tree03d5b58e5c18cacaaa7899da259588b946cb1620 /SConstruct
parentc1003457987049fe428bede649de321583550933 (diff)
downloadmongo-4dfbe1988c96cc0c46999095d3f1bbfd47ed2160.tar.gz
SERVER-45824 Use Ninja's response files instead of hard coding them into the generated file
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 8 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index cb1d11470ba..7790650587d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3796,8 +3796,14 @@ if get_option('ninja') == 'true':
description="Generating $out",
deps="msvc",
)
- env.NinjaRuleMapping("$IDLCCOM", "IDLC")
- env.NinjaRuleMapping(env["IDLCCOM"], "IDLC")
+
+ def get_idlc_command(env, node, action, targets, sources, executor=None):
+ _, variables = env.NinjaGetShellCommand(node, action, targets, sources, executor=executor)
+ variables["msvc_deps_prefix"] = "import file:"
+ return "IDLC", variables
+
+ env.NinjaRuleMapping("$IDLCCOM", get_idlc_command)
+ env.NinjaRuleMapping(env["IDLCCOM"], get_idlc_command)
# We can create empty files for FAKELIB in Ninja because it
# does not care about content signatures. We have to