[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 08:19:48 PST 2023


skatrak added a comment.

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

> In D143493#4110272 <https://reviews.llvm.org/D143493#4110272>, @skatrak wrote:
>
>> 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.
>
> This is a use case in Clang ;-)
>
>> It seemed likely that we would need to add a similar mechanism eventually to flang as well
>
> Possibly, but it's not needed yet?
>
> I would rather refrain from adding flags to Flang only because a similar flag exists in Clang. I suggest abandoning this until there's a clear need for this in Flang.

Sure, sounds reasonable. I suppose this will most likely come together with the rest of changes needed for basic offload then. Thank you!


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