瀏覽代碼

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

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
4c74d3a754
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/dds/compdb.cpp

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

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…
取消
儲存