Skip to content

Commit

Permalink
Fix clang-offload-bundler error
Browse files Browse the repository at this point in the history
Fix "clang-offload-bundler: error: Can't find bundle for the host
target" because hard coded `--target=x86_64-linux-gnu` option clashed
with `--target` option propagated via `.hipInfo`.
  • Loading branch information
linehill committed Mar 6, 2023
1 parent ef90c99 commit e2ee3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hipBin_spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ void HipBinSpirv::executeHipCCCmd(vector<string> origArgv) {
opts.needCXXFLAGS.present = opts.compile.present;
if (opts.needCXXFLAGS.present && !opts.needCFLAGS.present) {
CMD += " " + HIPCXXFLAGS;
CMD += " -x hip --target=x86_64-linux-gnu";
CMD += " -x hip";
}

opts.needLDFLAGS.present =
Expand Down

0 comments on commit e2ee3d1

Please sign in to comment.