Skip to content

Commit

Permalink
Add special setting for building configs to prevent rebuild issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Apr 20, 2024
1 parent 0068dba commit 38f4db7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sw/driver/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,11 @@ std::unordered_map<path, PrepareConfigOutputData> Driver::build_configs1(SwConte
auto hsold = swctx.getHostSettings();
auto hs = swctx.getHostSettings();
hs.erase("use_same_config_for_host_dependencies");
// we add special setting to make sure our config builds differ from normal builds
// and adding this in getDllConfigSettings() does not work
// because our targets ignore everything added except for native/os for progs (this is a FIXME)
hs["sw_config"] = "true";
//
swctx.setHostSettings(hs);
SCOPE_EXIT {
swctx.setHostSettings(hsold);
Expand Down

0 comments on commit 38f4db7

Please sign in to comment.