diff options
-rw-r--r-- | src/state.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.cc b/src/state.cc index b6c29ff..7d1d79d 100644 --- a/src/state.cc +++ b/src/state.cc @@ -112,6 +112,9 @@ Edge* State::AddEdge(const Rule* rule) { } Node* State::GetNode(StringPiece path) { +#if defined(_WIN32) && !defined(NDEBUG) + assert(strpbrk(path.AsString().c_str(), "/\\") == NULL); +#endif return GetNode(path, 0); } |