@@ -208,6 +208,7 @@ void dds::build(const build_params& params, const package_manifest& man) { | |||
lib_params.build_apps = params.build_apps; | |||
lib_params.enable_warnings = params.enable_warnings; | |||
fs::create_directories(params.out_root); | |||
auto db = database::open(params.out_root / ".dds.db"); | |||
dds::build_env env{params.toolchain, params.out_root, db}; | |||
@@ -467,9 +467,10 @@ struct cli_deps { | |||
man.dependencies.end()); | |||
}); | |||
auto tc = tc_filepath.get_toolchain(); | |||
auto bdir = build_dir.Get(); | |||
auto db = dds::database::open(bdir / ".dds.db"); | |||
auto tc = tc_filepath.get_toolchain(); | |||
auto bdir = build_dir.Get(); | |||
dds::fs::create_directories(bdir); | |||
auto db = dds::database::open(bdir / ".dds.db"); | |||
dds::build_env env{std::move(tc), bdir, db}; | |||
auto plan = dds::create_deps_build_plan(deps, env); |