@@ -33,8 +33,8 @@ extern ::cl::opt<bool> build_after_fetch;
3333
3434static ::cl::list<String> build_arg (::cl::Positional, ::cl::desc(" Files or directories to build (paths to config)" ), ::cl::sub(subcommand_build));
3535
36- static ::cl::opt<String> build_source_dir (" S" , ::cl::desc(" Explicitly specify a source directory." ), ::cl::sub(subcommand_build), ::cl::init(" ." ));
37- static ::cl::opt<String> build_binary_dir (" B" , ::cl::desc(" Explicitly specify a build directory." ), ::cl::sub(subcommand_build), ::cl::init(SW_BINARY_DIR));
36+ // static ::cl::opt<String> build_source_dir("S", ::cl::desc("Explicitly specify a source directory."), ::cl::sub(subcommand_build), ::cl::init("."));
37+ // static ::cl::opt<String> build_binary_dir("B", ::cl::desc("Explicitly specify a build directory."), ::cl::sub(subcommand_build), ::cl::init(SW_BINARY_DIR));
3838
3939static ::cl::opt<bool > build_fetch (" fetch" , ::cl::desc(" Fetch sources, then build" ), ::cl::sub(subcommand_build));
4040static ::cl::opt<path> build_explan (" ef" , ::cl::desc(" Build execution plan from specified file" ), ::cl::sub(subcommand_build));
@@ -606,7 +606,7 @@ static void isolated_build1(sw::SwContext &swctx)
606606 LOG_INFO (logger, " Copying files" );
607607
608608 auto m = getPackages (b, srcs);
609- auto d = fs::current_path () / SW_BINARY_DIR / " isolated" ;
609+ auto d = b. getBuildDirectory () / " isolated" ;
610610
611611 for (const auto &[pkg, tgts] : b.getTargetsToBuild ())
612612 {
0 commit comments