[clang] [Clang][ARM] Only try to redefine builtins for non-CUDA (PR #128222)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 14:20:42 PST 2025


================
@@ -27,6 +27,8 @@
 extern "C" {
 #endif
 
+#if !defined(__CUDA_ARCH__)
+
----------------
sarnex wrote:

Do you mean we unconditionally define declarations, regardless of compilation mode or `__has_builtin` result?

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


More information about the cfe-commits mailing list