Skip to content

Commit

Permalink
[WIP][Flang-new] Add mlink-builtin-bitcode ROCm files to flang-new in…
Browse files Browse the repository at this point in the history
…vocation
  • Loading branch information
DominikAdamski committed Jun 19, 2024
1 parent 9167cb0 commit 2c34078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -8003,7 +8003,7 @@ def source_date_epoch : Separate<["-"], "source-date-epoch">,
// CUDA Options
//===----------------------------------------------------------------------===//

let Visibility = [CC1Option] in {
let Visibility = [CC1Option, FC1Option] in {

def fcuda_is_device : Flag<["-"], "fcuda-is-device">,
HelpText<"Generate code for CUDA device">,
Expand Down
3 changes: 3 additions & 0 deletions clang/lib/Driver/ToolChains/Flang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args,
StringRef Val = A->getValue();
CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val));
}

const ToolChain &TC = getToolChain();
TC.addClangTargetOptions(Args, CmdArgs, Action::OffloadKind::OFK_OpenMP);
}

void Flang::addTargetOptions(const ArgList &Args,
Expand Down

0 comments on commit 2c34078

Please sign in to comment.