浏览代码

Can't bind a filesystem::path as a string

default_compile_flags
vector-of-bool 5 年前
父节点
当前提交
2233043515
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. +1
    -0
      src/dds/build.cpp
  2. +3
    -3
      src/dds/db/database.cpp

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

@@ -11,6 +11,7 @@

#include <spdlog/spdlog.h>

#include <array>
#include <stdexcept>

using namespace dds;

+ 3
- 3
src/dds/db/database.cpp 查看文件

@@ -151,8 +151,8 @@ void database::record_dep(path_ref input, path_ref output) {
)
)"_sql);
sqlite3::exec(st,
std::forward_as_tuple(fs::weakly_canonical(input.string()),
fs::weakly_canonical(output.string())));
std::forward_as_tuple(fs::weakly_canonical(input).string(),
fs::weakly_canonical(output).string()));
}

void database::store_file_command(path_ref file, const command_info& cmd) {
@@ -186,7 +186,7 @@ void database::forget_inputs_of(path_ref file) {
DELETE FROM dds_deps
WHERE output_file_id IN id_to_delete
)"_sql);
sqlite3::exec(st, std::forward_as_tuple(fs::weakly_canonical(file)));
sqlite3::exec(st, std::forward_as_tuple(fs::weakly_canonical(file).string()));
}

std::optional<std::vector<seen_file_info>> database::inputs_of(path_ref file_) {

正在加载...
取消
保存