瀏覽代碼

Fix: non-absolute lmi path causes bad create_directories() call

default_compile_flags
vector-of-bool 3 年之前
父節點
當前提交
1335c44bc5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/dds/build/builder.cpp

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

@@ -195,7 +195,7 @@ void write_lmp(build_env_ref env, const package_plan& pkg, path_ref lmp_path) {
}

void write_lmi(build_env_ref env, const build_plan& plan, path_ref base_dir, path_ref lmi_path) {
fs::create_directories(lmi_path.parent_path());
fs::create_directories(fs::absolute(lmi_path).parent_path());
auto out = open(lmi_path, std::ios::binary | std::ios::out);
out << "Type: Index\n";
for (const auto& pkg : plan.packages()) {

Loading…
取消
儲存