aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-30 18:05:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-30 18:05:00 +0200
commit02f294ade6ba3c7c33fd4fb4dccb7901eaa7ae5c (patch)
treeebec9fadf007e45f88fd90ab88f4753ab4fe5d8a
parentd9a068c997c38c82cedf20082dc15b0a575e404e (diff)
Fix missing .dll.d cleanup on MinGW
-rw-r--r--build2/cc/link.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx
index 72b4876..a1ecac3 100644
--- a/build2/cc/link.cxx
+++ b/build2/cc/link.cxx
@@ -1601,15 +1601,12 @@ namespace build2
file& t (static_cast<file&> (xt));
libs_paths paths;
- initializer_list<initializer_list<const char*>> e;
+ initializer_list<initializer_list<const char*>> e {{".d"}}; // Default.
switch (link_type (t))
{
case otype::a:
- {
- e = {{".d"}};
- break;
- }
+ break; // Default.
case otype::e:
{
if (tclass == "windows")
@@ -1626,8 +1623,6 @@ namespace build2
e = {{".d", ".dlls/", ".manifest", "-.ilk"}};
}
}
- else
- e = {{".d"}};
break;
}