| } | } | ||||
| } else if (env.toolchain.deps_mode() == deps_mode::msvc) { | } else if (env.toolchain.deps_mode() == deps_mode::msvc) { | ||||
| auto msvc_deps = parse_msvc_output_for_deps(compile_res.output, "Note: including file:"); | 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.output = cf.object_file_path; | ||||
| msvc_deps.deps_info.command = quote_command(cf.cmd_info.command); | msvc_deps.deps_info.command = quote_command(cf.cmd_info.command); | ||||
| msvc_deps.deps_info.command_output = msvc_deps.cleaned_output; | msvc_deps.deps_info.command_output = msvc_deps.cleaned_output; | ||||
| compile_res.output); | 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; | return ret_deps_info; | ||||
| } | } | ||||