================ @@ -1273,6 +1273,7 @@ COMPILER_RT_VISIBILITY int __llvm_profile_set_file_object(FILE *File, return 0; } +#ifdef COMPILER_RT_GPU_ENTRYPOINT ---------------- jhuber6 wrote: Can't we just use `__APPLE__`? https://github.com/llvm/llvm-project/pull/132966