Skip to content

Commit

Permalink
Add avx2/avx512/shani/sse4 defines to pkgconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmienk committed Jul 16, 2024
1 parent bd944d4 commit 334cdcd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions generate4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@

<package library="bitcoin-system" description="Bitcoin Cross-Platform C++ Development Toolkit" url="https://github.com/libbitcoin/libbitcoin-system" >
<flag value="@icu@" />
<flag value="@avx2@" />
<flag value="@avx512@" />
<flag value="@shani@" />
<flag value="@sse4@" />
</package>

<configure>
Expand Down
1 change: 1 addition & 0 deletions templates/gsl.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ $(my.indent)endif()
.
$(my.indent)if ( $(my.define_prefix)$(my.compound.name:upper) )
$(my.indent)add_compile_definitions( $(my.define_prefix)$(my.compound.name:upper) )
$(my.indent)set( $(my.compound.name:lower) "-D$(my.compound.type:upper)_$(my.compound.name:upper)" )
$(my.indent)else()
$(my.indent)message( FATAL_ERROR "Failed to enable $(my.define_prefix)$(my.compound.name:upper)" )
$(my.indent)endif()
Expand Down
5 changes: 3 additions & 2 deletions templates/gsl.configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,9 @@ AS_IF([test x${$(get_option_symbol(my.option))} != "xno"],
. else
AX_CHECK_COMPILE_FLAG([$(my.flags)],
. endif
$(my.indent)[CXXFLAGS="$CXXFLAGS $(my.flags)";
$(my.indent) AC_DEFINE([$(my.compound.type:upper)_$(my.compound.name:upper)])],
$(my.indent)[AC_DEFINE([$(my.compound.type:upper)_$(my.compound.name:upper)])
$(my.indent) CXXFLAGS="$CXXFLAGS $(my.flags)";
$(my.indent) AC_SUBST([$(my.compound.name:lower)], [-D$(my.compound.type:upper)_$(my.compound.name:upper)])],
$(my.indent)[AC_MSG_ERROR([$(my.flags) not supported.])],
. if defined(my.compound->program)
. define my.prog_indent = " $(my.indent)"
Expand Down

0 comments on commit 334cdcd

Please sign in to comment.