Просмотр исходного кода

Fix the main source file not being marked as an input to the compilation

default_compile_flags
vector-of-bool 5 лет назад
Родитель
Сommit
bf80d6a96b
1 измененных файлов: 4 добавлений и 0 удалений
  1. +4
    -0
      src/dds/build/plan/compile_exec.cpp

+ 4
- 0
src/dds/build/plan/compile_exec.cpp Просмотреть файл

@@ -107,6 +107,7 @@ std::optional<deps_info> do_compile(const compile_file_full& cf, build_env_ref e
}
} else if (env.toolchain.deps_mode() == deps_mode::msvc) {
auto msvc_deps = parse_msvc_output_for_deps(compile_res.output, "Note: including file:");
msvc_deps.deps_info.inputs.push_back(cf.plan.source_path());
msvc_deps.deps_info.output = cf.object_file_path;
msvc_deps.deps_info.command = quote_command(cf.cmd_info.command);
msvc_deps.deps_info.command_output = msvc_deps.cleaned_output;
@@ -140,6 +141,9 @@ std::optional<deps_info> do_compile(const compile_file_full& cf, build_env_ref e
compile_res.output);
}

// Do not return deps info if compilation failed, or we will incrementally
// store the compile failure
assert(compile_res.okay() || (!ret_deps_info.has_value()));
return ret_deps_info;
}


Загрузка…
Отмена
Сохранить