[Linux] Resolved issue with huge executable file under linux

- Fixed compilation issues
This commit is contained in:
Gliniak 2025-04-27 18:42:41 +02:00
parent 03571ac4c1
commit be715f76fa
2 changed files with 11 additions and 3 deletions

View File

@ -91,6 +91,7 @@ filter("configurations:Release")
"_NO_DEBUG_HEAP=1",
})
optimize("Speed")
symbols("Off")
inlining("Auto")
editandcontinue("Off")
-- Not using floatingpoint("Fast") - NaN checks are used in some places
@ -102,6 +103,7 @@ filter("configurations:Release")
filter({"configurations:Release", "platforms:Windows"})
linktimeoptimization("On")
symbols("On")
flags({
"NoBufferSecurityCheck"
})

View File

@ -594,14 +594,18 @@ class GameAchievementsDialog final : public XamDialog {
const auto unlock_time = chrono::WinSystemClock::to_local(
achievement_entry.unlock_time.to_time_point());
return fmt::format("Unlocked: {:%Y-%m-%d %H:%M}", unlock_time);
return fmt::format("Unlocked: {:%Y-%m-%d %H:%M}",
std::chrono::system_clock::time_point(
unlock_time.time_since_epoch()));
}
if (achievement_entry.unlock_time.is_valid()) {
const auto unlock_time = chrono::WinSystemClock::to_local(
achievement_entry.unlock_time.to_time_point());
return fmt::format("Unlocked: Offline ({:%Y-%m-%d %H:%M})", unlock_time);
return fmt::format("Unlocked: Offline ({:%Y-%m-%d %H:%M})",
std::chrono::system_clock::time_point(
unlock_time.time_since_epoch()));
}
return fmt::format("Unlocked: Offline");
}
@ -789,7 +793,9 @@ class GamesInfoDialog final : public XamDialog {
if (entry.WasTitlePlayed()) {
ImGui::TextUnformatted(
fmt::format("Last played: {:%Y-%m-%d %H:%M}", entry.last_played)
fmt::format("Last played: {:%Y-%m-%d %H:%M}",
std::chrono::system_clock::time_point(
entry.last_played.time_since_epoch()))
.c_str());
} else {
ImGui::TextUnformatted("Last played: Unknown");