We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece2903 commit 280c7a9Copy full SHA for 280c7a9
clang/lib/Driver/Driver.cpp
@@ -4647,7 +4647,8 @@ Action *Driver::BuildOffloadingActions(Compilation &C,
4647
4648
// All kinds exit now in device-only mode except for non-RDC mode HIP.
4649
if (offloadDeviceOnly() &&
4650
- (!C.isOffloadingHostKind(Action::OFK_HIP) ||
+ (getFinalPhase(Args) == phases::Preprocess ||
4651
+ !C.isOffloadingHostKind(Action::OFK_HIP) ||
4652
!Args.hasFlag(options::OPT_gpu_bundle_output,
4653
options::OPT_no_gpu_bundle_output, true) ||
4654
Args.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc, false)))
0 commit comments