diff options
-rw-r--r-- | build2/cc/link.cxx | 9 |
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; } |