aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-02 09:36:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-02 09:36:34 +0200
commit428ce65eebccc1992695f075e58b62598f771279 (patch)
tree054635c5c1d9d787f0f7db254d0ca3ec3825551e /build2/algorithm.cxx
parent324ec39cafb1f12e7114e21391113f314ff70faf (diff)
Optimize out path::normalize() calls
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx3
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.