[PATCH] D143493: [flang][driver] Add support for -include flag in flang -fc1

Sergio Afonso via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 7 07:44:28 PST 2023


skatrak added a comment.

In D143493#4110230 <https://reviews.llvm.org/D143493#4110230>, @awarzynski wrote:

> In what cases would this flag be used in practice? I've scanned Clang and couldn't find any answers.

It is introduced to the arguments list in `Clang::AddPreprocessingOptions` in certain cases to add the OpenMP wrapper "__clang_openmp_device_functions.h" to the list of includes for device offload. It seemed likely that we would need to add a similar mechanism eventually to flang as well, although I suppose it could also be useful in other situations.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143493/new/

https://reviews.llvm.org/D143493



More information about the cfe-commits mailing list