diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-14 09:38:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-14 09:38:51 +0200 |
commit | 68dde99b399290c6cbdf79dbaa0bb77356b3d247 (patch) | |
tree | 3bc4337bf0040ebba5ecf05e6970e153a41d9582 | |
parent | 25c0f97c03799fd64f250ad5cc86b366126ad62b (diff) |
Fix Windows linking issue
-rw-r--r-- | build2/cc/link.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 623100b..c0ff10c 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -1018,6 +1018,10 @@ namespace build2 { if (l != nullptr) { + // Check if this library renders us out of date. + // + d.update = d.update || l->newer (d.mt); + // On Windows a shared library is a DLL with the import library as a // first ad hoc group member. MinGW though can link directly to DLLs // (see search_library() for details). @@ -1027,10 +1031,6 @@ namespace build2 d.cs.append (f); d.cs.append (l->path ().string ()); - - // Check if this library renders us out of date. - // - d.update = d.update || l->newer (d.mt); } else d.cs.append (p); |