void
Config::set_config_path(const fs::path& path)
{
- m_config_path = path;
+ m_config_path = util::lexically_normal(path);
}
void
Config::set_system_config_path(const fs::path& path)
{
- m_system_config_path = path;
+ m_system_config_path = util::lexically_normal(path);
}
bool
#include <ccache/args.hpp>
#include <ccache/core/sloppiness.hpp>
#include <ccache/util/noncopyable.hpp>
+#include <ccache/util/path.hpp>
#include <ccache/util/string.hpp>
#include <sys/types.h>
inline void
Config::set_base_dir(const std::filesystem::path& value)
{
- m_base_dir = value;
+ m_base_dir = util::lexically_normal(value);
}
inline void
Config::set_cache_dir(const std::filesystem::path& value)
{
- m_cache_dir = value;
+ m_cache_dir = util::lexically_normal(value);
if (!m_temporary_dir_configured_explicitly) {
m_temporary_dir = default_temporary_dir();
}
inline void
Config::set_temporary_dir(const std::filesystem::path& value)
{
- m_temporary_dir = value;
+ m_temporary_dir = util::lexically_normal(value);
}