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-06-28 19:52:14 +0000 |
commit | 23311306d0af7e3de01ccd025ca608c3d53ec111 (patch) | |
tree | d867e11885c203cbf81f327c23512cfb763606e2 | |
parent | b020fbe22aba94ba0106cc93bec3fe4dff70ef3c (diff) | |
download | mongo-23311306d0af7e3de01ccd025ca608c3d53ec111.tar.gz |
SERVER-53054: fixed issue for WINLINK where inputs where not correctly given to ninja.
(cherry picked from commit 503c08c5cf2a68b56b46b2a5c52126fa65848c44)
-rw-r--r-- | SConstruct | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct index 9e94557ecf9..a9d8042dfbe 100644 --- a/SConstruct +++ b/SConstruct @@ -4068,7 +4068,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. @@ -4087,18 +4087,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. |