Add binary bitness in version info.

Fix #4425
This commit is contained in:
Marek Roszko 2021-04-30 19:16:47 -04:00
parent 7df9fa0631
commit 51fee0a3ad
2 changed files with 24 additions and 1 deletions

View File

@ -284,6 +284,15 @@ if( WIN32 )
endif()
endif()
if(KICAD_BUILD_ARCH_X64)
add_definitions( -DKICAD_BUILD_ARCH_X64 )
elseif(KICAD_BUILD_ARCH_X86)
add_definitions( -DKICAD_BUILD_ARCH_X86 )
elseif(KICAD_BUILD_ARCH_ARM64)
add_definitions( -DKICAD_BUILD_ARCH_ARM64 )
elseif(KICAD_BUILD_ARCH_ARM)
add_definitions( -DKICAD_BUILD_ARCH_ARM )
endif()
#================================================
# Provide access to CCACHE

View File

@ -96,7 +96,21 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
<< " build";
wxPlatformInfo platform;
aMsg << "Application: " << aTitle << eol << eol;
aMsg << "Application: " << aTitle;
#if defined( KICAD_BUILD_ARCH_X64 )
aMsg << " (64-bit)";
#elif defined( DKICAD_BUILD_ARCH_X86 )
aMsg << " (32-bit)";
#elif defined( DKICAD_BUILD_ARCH_ARM )
aMsg << " (ARM 32-bit)";
#elif defined( DKICAD_BUILD_ARCH_ARM64 )
aMsg << " (ARM 64-bit)";
#endif
aMsg << eol << eol;
aMsg << "Version: " << version << eol << eol;
aMsg << "Libraries:" << eol;