From c2b7e8a5a7bc98bcf5e03b32eefaa664442c26fe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 27 Sep 2009 19:17:22 +0200 Subject: Add option file for the CLI compiler itself --- cli/generator.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cli/generator.cxx') 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; -- cgit v1.1