Commit 4ee32c2f authored by Brett Wilson's avatar Brett Wilson

Normalize away "./" when writing Ninja short rules.

R=jamesr@chromium.org, jamesr

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

Cr-Commit-Position: refs/heads/master@{#291699}
parent 91fff9ef
......@@ -191,7 +191,9 @@ void NinjaBuildWriter::WritePhonyAndAllRules() {
for (size_t i = 0; i < default_toolchain_targets_.size(); i++) {
const Target* target = default_toolchain_targets_[i];
const Label& label = target->label();
const OutputFile& target_file = target->dependency_output_file();
OutputFile target_file(target->dependency_output_file());
// The output files may have leading "./" so normalize those away.
NormalizePath(&target_file.value());
// Write the long name "foo/bar:baz" for the target "//foo/bar:baz".
std::string long_name = label.GetUserVisibleName(false);
......
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