From 504f7fc5e3b9a60065113dc1725655ed5e9e872e Mon Sep 17 00:00:00 2001 From: Giuseppe Ottaviano Date: Wed, 3 Feb 2016 17:32:42 -0800 Subject: [PATCH] Build workaround for nvcc in Malloc.h Summary: See comment. Reviewed By: juancarabina, luciang Differential Revision: D2896262 fb-gh-sync-id: cb884651d47b86c0a5b3c2c22f421b2b1f39dc35 --- folly/Malloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/Malloc.h b/folly/Malloc.h index 828c1b65..8e99e379 100644 --- a/folly/Malloc.h +++ b/folly/Malloc.h @@ -116,7 +116,8 @@ namespace folly { #endif // Cannot depend on Portability.h when _LIBSTDCXX_FBSTRING. -#ifdef __GNUC__ +// Disabled for nvcc because it fails on attributes on lambdas. +#if defined(__GNUC__) && !defined(__NVCC__) #define FOLLY_MALLOC_NOINLINE __attribute__((__noinline__)) #else #define FOLLY_MALLOC_NOINLINE -- 2.34.1