summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index f19677c..3100cec 100644
--- a/src/config.h
+++ b/src/config.h
@@ -202,4 +202,13 @@
# endif
#endif
+/**
+ * Apply the target_clones attribute, if available.
+ */
+#if BFS_USE_TARGET_CLONES
+# define attr_target_clones(...) __attribute__((target_clones(__VA_ARGS__)))
+#else
+# define attr_target_clones(...)
+#endif
+
#endif // BFS_CONFIG_H