Browse Source

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

default_compile_flags
vector-of-bool 5 years ago
parent
commit
bf80d6a96b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/dds/build/plan/compile_exec.cpp

+ 4
- 0
src/dds/build/plan/compile_exec.cpp View File

} }
} 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;
} }



Loading…
Cancel
Save