Browse Source

Tweak compile log message

default_compile_flags
vector-of-bool 5 years ago
parent
commit
2d7c1e3473
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/dds/compile.cpp

+ 2
- 2
src/dds/compile.cpp View File

void file_compilation::compile(const toolchain& tc) const { void file_compilation::compile(const toolchain& tc) const {
fs::create_directories(obj.parent_path()); fs::create_directories(obj.parent_path());


spdlog::info("[{}] Compile file: {}",
spdlog::info("[{}] Compile: {}",
owner_name, owner_name,
fs::relative(source.path, rules.base_path()).string()); fs::relative(source.path, rules.base_path()).string());
auto start_time = std::chrono::steady_clock::now(); auto start_time = std::chrono::steady_clock::now();
auto end_time = std::chrono::steady_clock::now(); auto end_time = std::chrono::steady_clock::now();
auto dur_ms = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start_time); auto dur_ms = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start_time);


spdlog::info("[{}] Compile file: {} - {:n}ms",
spdlog::info("[{}] Compile: {} - {:n}ms",
owner_name, owner_name,
fs::relative(source.path, rules.base_path()).string(), fs::relative(source.path, rules.base_path()).string(),
dur_ms.count()); dur_ms.count());

Loading…
Cancel
Save