[cfe-dev] Configuration files

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 28 02:15:27 PDT 2016


On Wed, Sep 28, 2016 at 01:39:59PM +0700, Serge Pavlov via cfe-dev wrote:
> > But I don't think that's really what people want -- I believe that any
> > workable config-file scheme *must* interact with the various target
> > specification command-line arguments, and allow for setting options
> > dependent upon the actually-selected target.
> >
> >
> You probably mean something like gcc spec file. This is definitely more
> extensive work. The simple scheme proposed here may be used to implement
> more elaborated solutions.

No, nothing like spec files. As I said, you want to be able to specify
that the arm-linux target uses --sysroot=/somewhere/arm-linux and that
the arm-netbsd target uses --sysroot/somewhere/arm-netbsd. That and
maybe some -B option to help finding the linker likely already covers a
good 90% of what people need for setting up cross-compilation, if the
automatic triple-based search is not enough.

Joerg



More information about the cfe-dev mailing list