Bladeren bron

Create a dir for the database before opening it

default_compile_flags
vector-of-bool 5 jaren geleden
bovenliggende
commit
f806dba5ad
2 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. +1
    -0
      src/dds/build.cpp
  2. +4
    -3
      src/dds/dds.main.cpp

+ 1
- 0
src/dds/build.cpp Bestand weergeven

@@ -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};


+ 4
- 3
src/dds/dds.main.cpp Bestand weergeven

@@ -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);

Laden…
Annuleren
Opslaan