diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-02 09:36:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-02 09:36:34 +0200 |
commit | 428ce65eebccc1992695f075e58b62598f771279 (patch) | |
tree | 054635c5c1d9d787f0f7db254d0ca3ec3825551e /build2/algorithm.cxx | |
parent | 324ec39cafb1f12e7114e21391113f314ff70faf (diff) |
Optimize out path::normalize() calls
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. |