projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aece8b0
)
no need to Decanonicalize on non-Windows
author
Scott Graham
<scottmg@chromium.org>
Tue, 11 Nov 2014 00:35:31 +0000
(16:35 -0800)
committer
Scott Graham
<scottmg@chromium.org>
Tue, 11 Nov 2014 00:35:31 +0000
(16:35 -0800)
src/graph.cc
patch
|
blob
|
history
diff --git
a/src/graph.cc
b/src/graph.cc
index
930c626
..
223661c
100644
(file)
--- a/
src/graph.cc
+++ b/
src/graph.cc
@@
-330,6
+330,7
@@
bool Edge::use_console() const {
string Node::PathDecanonicalized() const {
string result = path_;
+#ifdef _WIN32
unsigned int mask = 1;
for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) {
if (slash_bits_ & mask)
@@
-337,6
+338,7
@@
string Node::PathDecanonicalized() const {
c++;
mask <<= 1;
}
+#endif
return result;
}