[PATCH] D93453: [flang][driver] Add support for `-I`

Steve Scalpone via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 6 02:52:41 PST 2021


sscalpone added a comment.

Flang supports include files and module files.  The search path is used to look for both include files and module files.  The help text doesn't include info about module files.

The help text refers to the -isystem option.  Is that implemented for flang, and if so, ought tests be added to make sure -I and -isystem co-exist as documented for flang?

Not that there's also a special include directory for intrinsic modules.  Intrinsic modules are treated specially, and right now, they are special by virtue of being in a special directory.  In the throwaway driver, the option is -intrinsic-module-directory.

There's also the -module option to specify the directory into which newly created module files are written.   I don't recall if flang or other compilers generally add that directory to the search path as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93453



More information about the cfe-commits mailing list