aboutsummaryrefslogtreecommitdiff
path: root/build2/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.cxx')
-rw-r--r--build2/target.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/target.cxx b/build2/target.cxx
index ebc21db..b3f0fdc 100644
--- a/build2/target.cxx
+++ b/build2/target.cxx
@@ -240,7 +240,7 @@ namespace build2
}
void target::
- combine_name (string& v, const optional<string>& e)
+ combine_name (string& v, const optional<string>& e, bool de)
{
if (v.back () == '.')
{
@@ -258,7 +258,7 @@ namespace build2
v += '.';
v += *e; // Empty or not.
}
- else
+ else if (de)
{
if (path::traits::find_extension (v) != string::npos)
v += "...";