feat(exe): remove pointless last file

This commit is contained in:
PancakeTAS 2025-08-07 16:52:37 +02:00 committed by Pancake
parent 938fe930b0
commit f5b55c7f83

View file

@ -3,10 +3,7 @@
#include "utils/benchmark.hpp"
#include "utils/utils.hpp"
#include <unistd.h>
#include <exception>
#include <fstream>
#include <stdexcept>
#include <iostream>
#include <cstdint>
@ -57,22 +54,6 @@ namespace {
// remove mesa var in favor of config
unsetenv("MESA_VK_WSI_PRESENT_MODE"); // NOLINT
// write latest file
try {
std::ofstream latest("/tmp/lsfg-vk_last", std::ios::trunc);
if (!latest.is_open())
throw std::runtime_error("Failed to open /tmp/lsfg-vk_last for writing");
latest << "exe: " << name.first << '\n';
latest << "comm: " << name.second << '\n';
latest << "pid: " << getpid() << '\n';
if (!latest.good())
throw std::runtime_error("Failed to write to /tmp/lsfg-vk_last");
} catch (const std::exception& e) {
std::cerr << "lsfg-vk: An error occurred while trying to write the latest file, exiting:\n";
std::cerr << "- " << e.what() << '\n';
exit(EXIT_FAILURE);
}
// load shaders
try {
Extract::extractShaders();