From 3ec07c196c9ab86db09c77bff7eb11cd5a5a9b1e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jul 2016 11:10:27 +0200 Subject: Add support for building DLLs with VC --- build2/algorithm.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/algorithm.cxx') 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 (t), {"+.d"}); + return clean_extra (a, dynamic_cast (t), {".d"}); } } -- cgit v1.1