1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-28 16:24:13 +01:00

[dxvk] Log build target and compiler used

This commit is contained in:
Blisto91 2024-11-10 13:56:23 +01:00 committed by Philip Rebohle
parent 9b272fb3f6
commit 8bca36460a
3 changed files with 18 additions and 0 deletions

6
buildenv.h.in Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#define DXVK_TARGET "@BUILD_TARGET@"
#define DXVK_COMPILER "@BUILD_COMPILER@"
#define DXVK_COMPILER_VERSION "@BUILD_COMPILER_VERSION@"

View File

@ -205,6 +205,16 @@ dxvk_version = vcs_tag(
output: 'version.h',
)
conf_data = configuration_data()
conf_data.set('BUILD_COMPILER', cpp.get_id())
conf_data.set('BUILD_COMPILER_VERSION', cpp.version())
conf_data.set('BUILD_TARGET', cpu_family)
dxvk_buildenv = configure_file(
configuration : conf_data,
input: 'buildenv.h.in',
output: 'buildenv.h',
)
if platform != 'windows'
subdir('include/native')
endif

View File

@ -1,4 +1,5 @@
#include <version.h>
#include <buildenv.h>
#include "dxvk_instance.h"
#include "dxvk_openvr.h"
@ -20,6 +21,7 @@ namespace dxvk {
DxvkInstance::DxvkInstance(const DxvkInstanceImportInfo& args, DxvkInstanceFlags flags) {
Logger::info(str::format("Game: ", env::getExeName()));
Logger::info(str::format("DXVK: ", DXVK_VERSION));
Logger::info(str::format("Build: ", DXVK_TARGET, " ", DXVK_COMPILER, " ", DXVK_COMPILER_VERSION));
wsi::init();