diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2020-01-30 14:59:41 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-01-31 17:07:09 +0000 |
commit | 4dfbe1988c96cc0c46999095d3f1bbfd47ed2160 (patch) | |
tree | 03d5b58e5c18cacaaa7899da259588b946cb1620 /SConstruct | |
parent | c1003457987049fe428bede649de321583550933 (diff) | |
download | mongo-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-- | SConstruct | 10 |
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 |