diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2020-12-30 21:53:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-08 16:52:01 +0000 |
commit | 503c08c5cf2a68b56b46b2a5c52126fa65848c44 (patch) | |
tree | d71775669a1d2e20cae21897652cd79725c58450 /SConstruct | |
parent | 0416c69269754a28d98c6288b09738d98c8bdfa2 (diff) | |
download | mongo-503c08c5cf2a68b56b46b2a5c52126fa65848c44.tar.gz |
SERVER-53054: fixed issue for WINLINK where inputs where not correctly given to ninja.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct index ed3bdce8309..ea32a4b8f9d 100644 --- a/SConstruct +++ b/SConstruct @@ -4384,7 +4384,7 @@ if get_option('ninja') != 'disabled': pool="local_pool", use_depfile=False, use_response_file=True, - response_file_content="$in_newline $rspc") + response_file_content="$rspc $in_newline") # Setup the response file content generation to use our workaround rule # for LINK commands. @@ -4403,18 +4403,18 @@ if get_option('ninja') != 'disabled': if ninja_build and 'rspc' in ninja_build["variables"]: rsp_content = [] - ninja_build["inputs"] = [] + inputs = [] for opt in ninja_build["variables"]["rspc"].split(): # if its a candidate to go in the inputs add it, else keep it in the non-newline # rsp_content list if opt.startswith(str(env.Dir("$BUILD_DIR"))) and opt != str(node): - ninja_build["inputs"].append(opt) + inputs.append(opt) else: rsp_content.append(opt) ninja_build["variables"]["rspc"] = ' '.join(rsp_content) - ninja_build["inputs"] += [infile for infile in ninja_build["inputs"] if infile not in ninja_build["inputs"]] + ninja_build["inputs"] += [infile for infile in inputs if infile not in ninja_build["inputs"]] # We apply the workaround to all Program nodes as they have potential # response files that have lines that are too long. |