summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMathew Robinson <mathew@chasinglogic.io>2020-03-03 09:44:13 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-04 19:05:40 +0000
commit7d095214ed875903d6531a9ba553cd0b94deea14 (patch)
tree57f96547c2c8f732ccfc5ae3089fc22d88f602ab /SConstruct
parent2d81ba278524e2b3b560552ac983435ad0d2bda0 (diff)
downloadmongo-7d095214ed875903d6531a9ba553cd0b94deea14.tar.gz
SERVER-46458 build/unittests.txt does not expand newlines with ninja
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 3 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index c3637aa1e37..a3502907dac 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3896,8 +3896,9 @@ if get_option('ninja') != 'disabled':
env.NinjaRule(
rule="TEST_LIST",
description="Compiling test list: $out",
- command="{}echo '$files' > '$out'".format(
- "cmd.exe /c " if env["PLATFORM"] == "win32" else "",
+ command="{prefix}echo {flags} '$files' > '$out'".format(
+ prefix="cmd.exe /c " if env["PLATFORM"] == "win32" else "",
+ flags="-n" if env["PLATFORM"] != "win32" else "",
),
)
env.NinjaRegisterFunctionHandler("test_list_builder_action", ninja_test_list_builder)