diff options
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r-- | build2/algorithm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index 595603c..fea3d25 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -43,7 +43,8 @@ namespace build2 if (tt == nullptr) fail << "unknown target type " << n.type << " in name " << n; - n.dir.normalize (); + if (!n.dir.empty ()) + n.dir.normalize (); // @@ OUT: for now we assume the prerequisite's out is undetermined. // Would need to pass a pair of names. |