summaryrefslogtreecommitdiff
path: root/cli/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-27 19:17:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-27 19:17:22 +0200
commitc2b7e8a5a7bc98bcf5e03b32eefaa664442c26fe (patch)
tree9d900b5da803aaf55870c8364d4f605aa786d103 /cli/generator.cxx
parente7cd4db81539a04935f00ee01c81541ec1e9b464 (diff)
Add option file for the CLI compiler itself
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r--cli/generator.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx
index 79401e0..0142201 100644
--- a/cli/generator.cxx
+++ b/cli/generator.cxx
@@ -71,7 +71,7 @@ generator ()
}
void generator::
-generate (semantics::cli_unit& unit, path const& p)
+generate (options const& ops, semantics::cli_unit& unit, path const& p)
{
try
{
@@ -81,8 +81,6 @@ generate (semantics::cli_unit& unit, path const& p)
string ixx_suffix (".ixx");
string cxx_suffix (".cxx");
- string out_dir;
-
path file (p.leaf ());
string base (file.base ().string ());
@@ -94,9 +92,9 @@ generate (semantics::cli_unit& unit, path const& p)
path ixx_path (ixx_name);
path cxx_path (cxx_name);
- if (!out_dir.empty ())
+ if (!ops.output_dir ().empty ())
{
- path dir (out_dir);
+ path dir (ops.output_dir ());
hxx_path = dir / hxx_path;
ixx_path = dir / ixx_path;