From 3c29644d3bc8c4daad68ab92003a9e754f39de2a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 18 Nov 2021 22:02:57 +0100 Subject: Refactor configure and the way it generates its cache. --- src/libctor.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/libctor.h') diff --git a/src/libctor.h b/src/libctor.h index 6d3becf..bcbe3a5 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -105,7 +105,15 @@ constexpr auto ctor_includedir = "ctor-includedir"; constexpr auto ctor_libdir = "ctor-libdir"; } -const std::map& configuration(); +struct Configuration +{ + std::vector args; // vector of arguments used when last calling configure + std::map env; // env used when last calling configure + + std::map tools; // tools +}; + +const Configuration& configuration(); bool hasConfiguration(const std::string& key); const std::string& getConfiguration(const std::string& key, const std::string& defaultValue = {}); -- cgit v1.2.3