[libcxx-commits] [libcxx] [libc++] Protect the libc++ implementation from CUDA SDK's `__noinline__` macro (PR #73838)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 19 09:20:23 PST 2023


https://github.com/EricWF commented:

So libc++ only references `__noinline__` twice. 

Given that `__noinline__` expands to `__attribute__((noinline))` couldn't we just:

```c++
#ifdef __noinline__
#define _LIBCPP_NOINLINE __noinline__
#else
#define _LIBCPP_NOINLINE __attribute__((__noinline__))
#endif
```

https://github.com/llvm/llvm-project/pull/73838


More information about the libcxx-commits mailing list