aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-26 19:30:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-26 19:30:13 +0000
commit9b20764f35094963ecbfc40a972ef54443630447 (patch)
treeab76f3470a6a16e36e32d808f6d75f25389d4974 /foot-features.h
parentMerge branch 'buffer-size-multiple-of-scale-factor' (diff)
features: --version now logs +/-pgo
That is, whether the binary was compiled with PGO or not.
Diffstat (limited to 'foot-features.h')
-rw-r--r--foot-features.h9
1 files changed, 9 insertions, 0 deletions
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
+}