From b4d5b44e00d778fdde3fd81caf34a736babde498 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 20 Apr 2024 17:48:35 +0200 Subject: [PATCH] Don't create perf map files in linux unless enabled --- Utilities/JITASM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utilities/JITASM.cpp b/Utilities/JITASM.cpp index 593add58f0..aebfbcd272 100644 --- a/Utilities/JITASM.cpp +++ b/Utilities/JITASM.cpp @@ -19,6 +19,7 @@ LOG_CHANNEL(jit_log, "JIT"); void jit_announce(uptr func, usz size, std::string_view name) { #ifdef __linux__ +#if 0 static const struct tmp_perf_map { std::string name{fmt::format("/tmp/perf-%d.map", getpid())}; @@ -44,6 +45,7 @@ void jit_announce(uptr func, usz size, std::string_view name) fs::remove_file(s_map.name); return; } +#endif #endif if (!size)