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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 13:37:15 PST 2025


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

We'd want this to compile for the CUDA host, you should be able to check `__CUDA_ARCH__` for the CUDA device only.

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


More information about the cfe-commits mailing list