================ @@ -32,6 +33,8 @@ #define math_errhandling 0 #elif defined(__NO_MATH_ERRNO__) #define math_errhandling (MATH_ERREXCEPT) +#elif defined(LIBC_TARGET_ARCH_IS_GPU) ---------------- jhuber6 wrote: Sure https://github.com/llvm/llvm-project/pull/83172