Skip to content

Commit c570486

Browse files
committed
[Driver] do not add lib check for device-only
1 parent a151b0e commit c570486

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,8 @@ void CudaToolChain::addClangTargetOptions(
642642
CC1Args);
643643
}
644644

645-
auto NoLibSpirv = DriverArgs.hasArg(options::OPT_fno_sycl_libspirv);
645+
auto NoLibSpirv = DriverArgs.hasArg(options::OPT_fno_sycl_libspirv,
646+
options::OPT_fsycl_device_only);
646647
if (DeviceOffloadingKind == Action::OFK_SYCL && !NoLibSpirv) {
647648
std::string LibSpirvFile;
648649

0 commit comments

Comments
 (0)