From 9b20764f35094963ecbfc40a972ef54443630447 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 26 Mar 2021 20:30:13 +0100 Subject: features: --version now logs +/-pgo That is, whether the binary was compiled with PGO or not. --- foot-features.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'foot-features.h') diff --git a/foot-features.h b/foot-features.h index 8da22f6c..ae00c564 100644 --- a/foot-features.h +++ b/foot-features.h @@ -10,3 +10,12 @@ static inline bool feature_ime(void) return false; #endif } + +static inline bool feature_pgo(void) +{ +#if defined(FOOT_PGO_ENABLED) && FOOT_PGO_ENABLED + return true; +#else + return false; +#endif +} -- cgit v1.3