mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
Log LLVM version
This commit is contained in:
parent
8f660fc6b1
commit
448666c896
2 changed files with 18 additions and 0 deletions
|
@ -62,6 +62,10 @@
|
|||
|
||||
#include "Emu/RSX/GSRender.h"
|
||||
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#include "llvm/Config/llvm-config.h"
|
||||
#endif
|
||||
|
||||
LOG_CHANNEL(sys_log, "SYS");
|
||||
|
||||
// Preallocate 32 MiB
|
||||
|
@ -345,6 +349,19 @@ extern void dump_executable(std::span<const u8> data, const ppu_module<lv2_obj>*
|
|||
|
||||
void Emulator::Init()
|
||||
{
|
||||
// Log LLVM version
|
||||
if (static bool logged_llvm = false; !logged_llvm)
|
||||
{
|
||||
#ifndef LLVM_AVAILABLE
|
||||
sys_log.always()("LLVM version: Compiled without LLVM");
|
||||
#elif defined (LLVM_VERSION_STRING)
|
||||
sys_log.always()("LLVM version: %s", LLVM_VERSION_STRING);
|
||||
#else
|
||||
sys_log.always()("LLVM version: Unknown");
|
||||
#endif
|
||||
logged_llvm = true;
|
||||
}
|
||||
|
||||
jit_runtime::initialize();
|
||||
|
||||
const std::string emu_dir = rpcs3::utils::get_emu_dir();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue