[clang] [Clang][OpenMP][Driver] Make linker to link Device RTL when built for SPIRV (PR #180066)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 13 11:04:11 PST 2026


================
@@ -9300,7 +9300,7 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
 
       // If this is OpenMP the device linker will need `-lompdevice`.
       if (Kind == Action::OFK_OpenMP && !Args.hasArg(OPT_no_offloadlib) &&
-          (TC->getTriple().isAMDGPU() || TC->getTriple().isNVPTX()))
+          TC->getTriple().isGPU())
----------------
sarnex wrote:

Sorry, can you add a test to `clang/test/Driver/` locking this down?

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


More information about the cfe-commits mailing list