Merge pull request #393 from boostorg/issue392

Patch for noinline attribute on the HIP compiler.
This commit is contained in:
jzmaddock
2021-08-09 19:07:38 +01:00
committed by GitHub

View File

@ -629,6 +629,9 @@ namespace std{ using ::type_info; }
// nvcc doesn't always parse __noinline__,
// see: https://svn.boost.org/trac/boost/ticket/9392
# define BOOST_NOINLINE __attribute__ ((noinline))
# elif defined(HIP_VERSION)
// See https://github.com/boostorg/config/issues/392
# define BOOST_NOINLINE __attribute__ ((noinline))
# else
# define BOOST_NOINLINE __attribute__ ((__noinline__))
# endif