diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-29 14:18:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-29 14:25:21 +0200 |
commit | 30dcb00062969f914e1c6e02070287f499e02fbf (patch) | |
tree | 012803c2c362fa41f40615df692db1ed19fa0929 /build2/cc/common.cxx | |
parent | 495e79341b8bbbd43bcb92d4cff5ad87111886f0 (diff) |
Fix bug in installed import library search on Windows
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r-- | build2/cc/common.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index 195c3b7..ce8415c 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -224,6 +224,9 @@ namespace build2 { for (auto pt: l.prerequisite_targets) { + if (pt == nullptr) + continue; + bool a; const file* f; @@ -622,12 +625,13 @@ namespace build2 if (!exist) { if (l.owns_lock ()) + { s->member = i; + l.unlock (); + } else assert (s->member == i); - l.unlock (); - i->mtime (mt); i->path (move (f)); |