]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
enhance: Add Config::set_temporary_dir
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Aug 2022 13:52:55 +0000 (15:52 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Aug 2022 13:53:41 +0000 (15:53 +0200)
For usage by unit tests.

src/Config.hpp

index 0e18247f5fbbd3cfd1e6c8776f5ae596c58a4102..66920b1cde232e68b8c9bb09feb8a193cc76f49d 100644 (file)
@@ -116,6 +116,7 @@ public:
   void set_max_files(uint64_t value);
   void set_max_size(uint64_t value);
   void set_run_second_cpp(bool value);
+  void set_temporary_dir(const std::string& value);
 
   // Where to write configuration changes.
   const std::string& primary_config_path() const;
@@ -569,3 +570,9 @@ Config::set_run_second_cpp(bool value)
 {
   m_run_second_cpp = value;
 }
+
+inline void
+Config::set_temporary_dir(const std::string& value)
+{
+  m_temporary_dir = value;
+}