Skip to content

Commit

Permalink
[gen][vs] Do not use 'use_same_config_for_host_dependencies' for clan…
Browse files Browse the repository at this point in the history
…g family.
  • Loading branch information
egorpugin committed Apr 27, 2024
1 parent a2a232a commit 122aa22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sw/client/common/command/generate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,23 @@ SUBCOMMAND_DECL(generate)
throw SW_RUNTIME_ERROR("Only one compiler may be specified");
}
else
{
getOptions().compiler.push_back("msvc");
}
if (getOptions().configuration.empty())
{
getOptions().configuration.push_back("d");
getOptions().configuration.push_back("rwdi");
getOptions().configuration.push_back("r");
}
// vs gen works only with this atm
getOptions().use_same_config_for_host_dependencies = true;
if (false
|| getOptions().compiler[0].contains("msvc")
|| !getOptions().compiler[0].contains("clang")
) {
// not for clang, currently some packages can't be built with it (python, bison)
getOptions().use_same_config_for_host_dependencies = true;
}

auto g = (VSGenerator*)generator.get();
if (getOptions().options_generate.print_overridden_dependencies)
Expand Down

0 comments on commit 122aa22

Please sign in to comment.