Browse Source

Fix trigger of infinite recursion in MSVC when converting a path to a string

default_compile_flags
vector-of-bool 5 years ago
parent
commit
4c74d3a754
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/dds/compdb.cpp

+ 1
- 1
src/dds/compdb.cpp View File

for (const compile_file_plan& cf : iter_compilations(plan)) { for (const compile_file_plan& cf : iter_compilations(plan)) {
auto command = cf.generate_compile_command(env); auto command = cf.generate_compile_command(env);
auto entry = nlohmann::json::object({ auto entry = nlohmann::json::object({
{"directory", env.output_root},
{"directory", env.output_root.string()},
{"arguments", command}, {"arguments", command},
{"file", cf.source_path().string()}, {"file", cf.source_path().string()},
}); });

Loading…
Cancel
Save