forked from boostorg/config
Fix for nvcc, see https://svn.boost.org/trac/boost/ticket/9392
This commit is contained in:
@ -558,7 +558,13 @@ namespace std{ using ::type_info; }
|
|||||||
# define BOOST_NOINLINE __declspec(noinline)
|
# define BOOST_NOINLINE __declspec(noinline)
|
||||||
# elif defined(__GNUC__) && __GNUC__ > 3
|
# elif defined(__GNUC__) && __GNUC__ > 3
|
||||||
// Clang also defines __GNUC__ (as 4)
|
// Clang also defines __GNUC__ (as 4)
|
||||||
# define BOOST_NOINLINE __attribute__ ((__noinline__))
|
# if defined(__CUDACC__)
|
||||||
|
// nvcc doesn't always parse __noinline__,
|
||||||
|
// see: https://svn.boost.org/trac/boost/ticket/9392
|
||||||
|
# define BOOST_NOINLINE __attribute__ ((noinline))
|
||||||
|
# else
|
||||||
|
# define BOOST_NOINLINE __attribute__ ((__noinline__))
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define BOOST_NOINLINE
|
# define BOOST_NOINLINE
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user