Bläddra i källkod

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

default_compile_flags
vector-of-bool 5 år sedan
förälder
incheckning
2233043515
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. +1
    -0
      src/dds/build.cpp
  2. +3
    -3
      src/dds/db/database.cpp

+ 1
- 0
src/dds/build.cpp Visa fil

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

#include <spdlog/spdlog.h>

#include <array>
#include <stdexcept>

using namespace dds;

+ 3
- 3
src/dds/db/database.cpp Visa fil

@@ -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_) {

Laddar…
Avbryt
Spara