diff options
author | Mathew Robinson <mathew@chasinglogic.io> | 2020-03-03 09:44:13 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-04 19:05:40 +0000 |
commit | 7d095214ed875903d6531a9ba553cd0b94deea14 (patch) | |
tree | 57f96547c2c8f732ccfc5ae3089fc22d88f602ab /SConstruct | |
parent | 2d81ba278524e2b3b560552ac983435ad0d2bda0 (diff) | |
download | mongo-7d095214ed875903d6531a9ba553cd0b94deea14.tar.gz |
SERVER-46458 build/unittests.txt does not expand newlines with ninja
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
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) |