summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-09 13:02:59 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-09 15:35:37 -0500
commit0a5091a9005b485fccad689a4cbf081802860a5a (patch)
tree492e2b0f0ee76ddacf740d60bbbfa458cca1fc3d /src/config.h
parent026e8fbd248561396752552efa3cc04e0ac832b7 (diff)
downloadbfs-0a5091a9005b485fccad689a4cbf081802860a5a.tar.xz
config: New attr_target_clones() macro
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