Sfoglia il codice sorgente

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

default_compile_flags
vector-of-bool 5 anni fa
parent
commit
bf80d6a96b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      src/dds/build/plan/compile_exec.cpp

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

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


Loading…
Annulla
Salva