aboutsummaryrefslogtreecommitdiff
path: root/build2/cli/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cli/target.cxx')
-rw-r--r--build2/cli/target.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/build2/cli/target.cxx b/build2/cli/target.cxx
index 44d1a9a..52ddd17 100644
--- a/build2/cli/target.cxx
+++ b/build2/cli/target.cxx
@@ -49,7 +49,11 @@ namespace build2
}
static target*
- cli_cxx_factory (const target_type&, dir_path d, string n, const string* e)
+ cli_cxx_factory (const target_type&,
+ dir_path d,
+ dir_path o,
+ string n,
+ const string* e)
{
tracer trace ("cli::cli_cxx_factory");
@@ -58,11 +62,11 @@ namespace build2
// src_base if the buildfile mentions some of them explicitly
// as prerequisites.
//
- targets.insert<cxx::hxx> (d, n, trace);
- targets.insert<cxx::cxx> (d, n, trace);
- targets.insert<cxx::ixx> (d, n, trace);
+ targets.insert<cxx::hxx> (d, o, n, trace);
+ targets.insert<cxx::cxx> (d, o, n, trace);
+ targets.insert<cxx::ixx> (d, o, n, trace);
- return new cli_cxx (move (d), move (n), e);
+ return new cli_cxx (move (d), move (o), move (n), e);
}
const target_type cli_cxx::static_type