}
bool
-is_ccache_executable(const std::string_view path)
+is_ccache_executable(const fs::path& path)
{
- std::string name(Util::base_name(path));
+ std::string name = path.filename().string();
#ifdef _WIN32
name = util::to_lowercase(name);
#endif
#include <Args.hpp>
#include <Config.hpp>
+#include <filesystem>
#include <functional>
#include <string>
#include <string_view>
const FindExecutableFunction& find_executable_function,
bool masquerading_as_compiler);
CompilerType guess_compiler(std::string_view path);
-bool is_ccache_executable(std::string_view path);
+bool is_ccache_executable(const std::filesystem::path& path);