tarunprabhu wrote:

> @tarunprabhu I was honestly a little confused about what the Flang.cpp code 
> was doing... I sort of thought visibility from Options.td what driving the 
> forwarding of arguments. I have corrected that misunderstanding after digging 
> into this code and the call chain between `main` and `fc1_main` a little 
> more, but I notice that a lot of this code is just forwarding arguments from 
> flang to fc1. Would you be open to an RFC to add a `AutomaticallyForwarded` 
> or `Forwarded` `OptionFlag` in `clang/Options/Options.td` and have a generic 
> loop that forwards any options with this flag?

I think it may be sufficient to just forward any options that have not been 
claimed, but let me check what clang does here. I can't remember off the top of 
my head.

https://github.com/llvm/llvm-project/pull/200733
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to