access to include path in front end
James K. Lowden
jklowden@schemamania.org
Wed Nov 30 17:18:28 GMT 2022
On Wed, 30 Nov 2022 08:49:35 +0100
Richard Biener <richard.guenther@gmail.com> wrote:
> > I would like to use the -I option to pass the names of copybook
> > directories to the cobol front end. A bit of exploration yesterday
> > left me with the sense that the -I argument, in C at least, is not
> > passed to the compiler, but to the preprocessor. Access to
> > -fmax-errors I think I've figured out, but -I is a mystery.
>
> The frontends have access to the set of passed options via the
> option processing langhooks (and there's also global_options
> and global_options_set), -I would be the OPT_I option (currently
> only enabled for some frontends, you can add that in your
> language specific .opt file). The set of include directories is
> not in any way special here.
Thanks for clearing that up for me, Richard. I somehow got the
impression that the langhooks were needed only for adding options
specific to the language.
--jkl
More information about the Gcc
mailing list