diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-11-18 22:02:57 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-11-18 22:02:57 +0100 |
commit | 3c29644d3bc8c4daad68ab92003a9e754f39de2a (patch) | |
tree | 38a03929b6c773131677a7c08cda868769495423 /src/libctor.h | |
parent | dbd68011363b01f22ab85e11ad52a8e90da9611a (diff) |
Refactor configure and the way it generates its cache.
Diffstat (limited to 'src/libctor.h')
-rw-r--r-- | src/libctor.h | 10 |
1 files changed, 9 insertions, 1 deletions
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<std::string, std::string>& configuration(); +struct Configuration +{ + std::vector<std::string> args; // vector of arguments used when last calling configure + std::map<std::string, std::string> env; // env used when last calling configure + + std::map<std::string, std::string> tools; // tools +}; + +const Configuration& configuration(); bool hasConfiguration(const std::string& key); const std::string& getConfiguration(const std::string& key, const std::string& defaultValue = {}); |