Quellcode durchsuchen

Create a dir for the database before opening it

default_compile_flags
vector-of-bool vor 5 Jahren
Ursprung
Commit
f806dba5ad
2 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. +1
    -0
      src/dds/build.cpp
  2. +4
    -3
      src/dds/dds.main.cpp

+ 1
- 0
src/dds/build.cpp Datei anzeigen

@@ -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 Datei anzeigen

@@ -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…
Abbrechen
Speichern