Commit 5c1a294c authored by dpranke's avatar dpranke Committed by Commit bot

Fix 'gn clean'.

The new 'gn clean' command didn't actually work right; when we
read in the existing build.ninja file, we would trim the leading
whitespace from the lines, producing an invalide ninja file as a result.

R=brettw@chromium.org
BUG=

Review URL: https://codereview.chromium.org/952053004

Cr-Commit-Position: refs/heads/master@{#318189}
parent 4d57cb47
......@@ -27,7 +27,7 @@ std::string ExtractGNBuildCommands(const base::FilePath& build_ninja_file) {
}
std::vector<std::string> lines;
base::SplitString(file_contents, '\n', &lines);
base::SplitStringDontTrim(file_contents, '\n', &lines);
std::string result;
int num_blank_lines = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment