[clang] [libclc] [clang] Add the ability to link libclc OpenCL libraries (PR #146503)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 30 04:36:25 PDT 2025


================
@@ -795,6 +795,8 @@ void AMDGPUToolChain::addClangTargetOptions(
     CC1Args.push_back("-fvisibility=hidden");
     CC1Args.push_back("-fapply-global-visibility-to-externs");
   }
+
+  addOpenCLBuiltinsLib(getDriver(), DriverArgs, CC1Args);
----------------
jhuber6 wrote:

Can we only do this if the 'DeviceOffloadingKind' is none? That way this doesn't show up for the offloading languages.

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


More information about the cfe-commits mailing list