void set_inode_cache(bool value);
void set_max_files(uint64_t value);
void set_max_size(uint64_t value);
+ void set_msvc_dep_prefix(const std::string& value);
void set_run_second_cpp(bool value);
void set_temporary_dir(const std::string& value);
- void set_msvc_dep_prefix(const std::string& value);
// Where to write configuration changes.
const std::string& config_path() const;
}
inline void
-Config::set_run_second_cpp(bool value)
+Config::set_msvc_dep_prefix(const std::string& value)
{
- m_run_second_cpp = value;
+ m_msvc_dep_prefix = value;
}
inline void
-Config::set_temporary_dir(const std::string& value)
+Config::set_run_second_cpp(bool value)
{
- m_temporary_dir = value;
+ m_run_second_cpp = value;
}
inline void
-Config::set_msvc_dep_prefix(const std::string& value)
+Config::set_temporary_dir(const std::string& value)
{
- m_msvc_dep_prefix = value;
+ m_temporary_dir = value;
}
std::unique_ptr<MiniTrace> mini_trace;
#endif
+ // Whether we have added "/showIncludes" ourselves since it's missing and
+ // depend mode is enabled.
bool auto_depend_mode = false;
// Register a temporary file to remove at program exit.
&& ctx.config.compiler_type() == CompilerType::msvc) {
ctx.auto_depend_mode = true;
args_info.generating_includes = true;
- args_info.depend_extra_args.push_back("-showIncludes");
+ args_info.depend_extra_args.push_back("/showIncludes");
}
return {
"Note: including file: foo\n"
"Second\n");
- SUBCASE("empty output")
+ SUBCASE("Empty output")
{
const util::Bytes result =
core::ShowIncludesParser::strip_includes(ctx, {});
CHECK(result.size() == 0);
}
- SUBCASE("feature disabled")
+ SUBCASE("Feature disabled")
{
const util::Bytes result =
core::ShowIncludesParser::strip_includes(ctx, util::Bytes(input));
ctx.auto_depend_mode = true;
- SUBCASE("wrong compiler")
+ SUBCASE("Wrong compiler")
{
const util::Bytes result =
core::ShowIncludesParser::strip_includes(ctx, util::Bytes(input));