[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 08:05:03 PST 2025


================
@@ -9270,11 +9260,6 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
     });
   }
 
-  // If we disable the GPU C library support it needs to be forwarded to the
-  // link job.
-  if (!Args.hasFlag(options::OPT_gpulibc, options::OPT_nogpulibc, true))
----------------
jhuber6 wrote:

This is leftover from an ill-conceived attempt at making the AMDGPU target link it automatically if it was present. It's useless now so I just deleted it.

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


More information about the cfe-commits mailing list