summaryrefslogtreecommitdiff
path: root/src/other_tools/utils
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-10 12:43:48 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-22 10:40:32 +0100
commit6c4ecdb57f9140dc8474da2f83660fc5f977cc6d (patch)
tree280cc0da0321b55e23f731b9d3c6b5e04830d7cf /src/other_tools/utils
parent70393c8717c7b3b192928e652e103f12ff89a483 (diff)
downloadjustbuild-6c4ecdb57f9140dc8474da2f83660fc5f977cc6d.tar.gz
Computed roots: extend data structure to support the absent pragma
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r--src/other_tools/utils/parse_precomputed_root.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/other_tools/utils/parse_precomputed_root.cpp b/src/other_tools/utils/parse_precomputed_root.cpp
index f30316e6..c5eebf90 100644
--- a/src/other_tools/utils/parse_precomputed_root.cpp
+++ b/src/other_tools/utils/parse_precomputed_root.cpp
@@ -84,9 +84,9 @@ namespace {
return ComputedRoot{.repository = repo->String(),
.target_module = target_module->String(),
.target_name = target_module->String(),
- .config = config.IsNotNull()
- ? config->ToJson()
- : nlohmann::json::object()};
+ .config = config.IsNotNull() ? config->ToJson()
+ : nlohmann::json::object(),
+ .absent = false};
}
[[nodiscard]] auto ParseTreeStructureRoot(ExpressionPtr const& repository)