updated build system

This commit is contained in:
2024-08-08 19:33:16 -05:00
parent 7977b4b304
commit f2dc325774

View File

@ -141,14 +141,12 @@ auto get_file_size(std::string_view path, std::uint64_t &file_size) -> bool {
}
file_size = static_cast<std::uint64_t>(st.st_size);
return true;
#else // !defined(_WIN32)
std::error_code ec{};
file_size = std::filesystem::file_size(abs_path, ec);
if (not ec) {
return false;
}
return (ec.value() == 0);
#endif // defined(_WIN32)
return true;
}
auto get_file_size(std::wstring_view path, std::uint64_t &file_size) -> bool {