mirror of
https://github.com/matrix-construct/construct
synced 2024-12-24 14:34:00 +01:00
configure: Add --enable-clones for dynamic function multi-versioning.
This commit is contained in:
parent
44acc6a287
commit
4371380fe9
2 changed files with 29 additions and 0 deletions
19
configure.ac
19
configure.ac
|
@ -266,6 +266,24 @@ AC_ARG_ENABLE(optimize, RB_HELP_STRING([--enable-optimize], [Enable optimization
|
|||
|
||||
AM_CONDITIONAL([OPTIMIZE], [[[[ "$OPTIMIZE" = "1" ]]]])
|
||||
|
||||
dnl
|
||||
dnl Enable target clones code generation
|
||||
dnl
|
||||
|
||||
AC_MSG_CHECKING(whether to generate code for target clones)
|
||||
AC_ARG_ENABLE(clones, RB_HELP_STRING([--enable-clones], [Enable target clones generation]),
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_SUBST(CLONES, 1)
|
||||
RB_DEFINE([CLONES], [1], [Function multi-versioning for different architectures])
|
||||
clones="yes"
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
clones="no"
|
||||
])
|
||||
|
||||
AM_CONDITIONAL([CLONES], [[[[ "$CLONES" = "1" ]]]])
|
||||
|
||||
dnl
|
||||
dnl Explicit link-time-optimization switch
|
||||
dnl
|
||||
|
@ -3154,6 +3172,7 @@ echo "Linker flags (LDFLAGS) ............ $LDFLAGS"
|
|||
echo
|
||||
echo "Developer platform (build) ........ $build_cpu $build_vendor $build_os"
|
||||
echo "Target platform (host) ............ $host_cpu $host_vendor $host_os"
|
||||
echo "Target clones ..................... $clones"
|
||||
echo "Target features ................... $machine_tuning $machine_features"
|
||||
echo
|
||||
echo "Precompile headers ................ $build_pch"
|
||||
|
|
|
@ -81,6 +81,16 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Target clones
|
||||
//
|
||||
|
||||
#ifdef RB_CLONES
|
||||
#define IRCD_CLONES(features) gnu::target_clones(features)
|
||||
#else
|
||||
#define IRCD_CLONES(features)
|
||||
#endif
|
||||
|
||||
//
|
||||
// 128 bit integer support
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue