features: --version now logs +/-pgo

That is, whether the binary was compiled with PGO or not.
This commit is contained in:
Daniel Eklöf 2021-03-26 20:30:13 +01:00
parent 649820eeba
commit 9b20764f35
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 20 additions and 4 deletions

View file

@ -35,8 +35,10 @@ static const char *
version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf), "version: %s %cime",
FOOT_VERSION, feature_ime() ? '+' : '-');
snprintf(buf, sizeof(buf), "version: %s %cime %cpgo",
FOOT_VERSION,
feature_ime() ? '+' : '-',
feature_pgo() ? '+' : '-');
return buf;
}