aboutsummaryrefslogtreecommitdiff
path: root/build/search.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
commit2a0f9e035f673f1ee387924501a31990de37f18d (patch)
treeb8e55ab74bc88b788e99d8649219b931b80432d5 /build/search.cxx
parent4c44c914d898af53152addad5530504548175e85 (diff)
Implement lib/liba/libso{} target group, shared/static library build
Diffstat (limited to 'build/search.cxx')
-rw-r--r--build/search.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/search.cxx b/build/search.cxx
index 7fa9720..b1d5ec6 100644
--- a/build/search.cxx
+++ b/build/search.cxx
@@ -100,7 +100,9 @@ namespace build
level4 ([&]{trace << (r.second ? "new" : "existing") << " target "
<< t << " for prerequsite " << pk;});
- t.path (move (f));
+ if (t.path ().empty ())
+ t.path (move (f));
+
t.mtime (mt);
return &t;
}