瀏覽代碼

Create a dir for the database before opening it

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
f806dba5ad
共有 2 個檔案被更改,包括 5 行新增3 行删除
  1. +1
    -0
      src/dds/build.cpp
  2. +4
    -3
      src/dds/dds.main.cpp

+ 1
- 0
src/dds/build.cpp 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存