diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/graph.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc index 9f7fc76..ed7097b 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -189,7 +189,14 @@ string EdgeEnv::MakePathList(vector<Node*>::iterator begin, for (vector<Node*>::iterator i = begin; i != end; ++i) { if (!result.empty()) result.push_back(' '); - result.append((*i)->path()); + const string& path = (*i)->path(); + if (path.find(" ") != string::npos) { + result.append("\""); + result.append(path); + result.append("\""); + } else { + result.append(path); + } } return result; } |