From 38f4db78b405d2e1ed856b249f2abd554c38c43e Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sat, 20 Apr 2024 21:28:19 +0300 Subject: [PATCH] Add special setting for building configs to prevent rebuild issues. --- src/sw/driver/driver.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sw/driver/driver.cpp b/src/sw/driver/driver.cpp index 67ea81a8..ca3ae177 100644 --- a/src/sw/driver/driver.cpp +++ b/src/sw/driver/driver.cpp @@ -590,6 +590,11 @@ std::unordered_map 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);