diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-19 11:10:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-19 11:10:27 +0200 |
commit | 3ec07c196c9ab86db09c77bff7eb11cd5a5a9b1e (patch) | |
tree | 64fa1a8ec1e0152898843bb82a775c4ba1f194e0 /build2/algorithm.cxx | |
parent | 1470c64377bfd29d434261208cd91b001b17c3f4 (diff) |
Add support for building DLLs with VC
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r-- | build2/algorithm.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index 59a7800..595603c 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -500,11 +500,11 @@ namespace build2 if (d) ++e; - path p; - if (*e == '+') - p = ft.path () + ++e; - else - p = ft.path ().base () + e; + path p (ft.path ()); + for (; *e == '-'; ++e) + p = p.base (); + + p += e; target_state r (target_state::unchanged); @@ -614,6 +614,6 @@ namespace build2 target_state perform_clean_depdb (action a, target& t) { - return clean_extra (a, dynamic_cast<file&> (t), {"+.d"}); + return clean_extra (a, dynamic_cast<file&> (t), {".d"}); } } |