[cfe-commits] Patch: reading clang configuration from yaml

Marco Peereboom marco at peereboom.us
Wed Aug 15 11:17:13 PDT 2012


I really like the idea behind this.  This will come especially handy 
when bootstrapping various things.  I'd love for some variation of this 
to be accepted.

On 08/15/12 10:59, Josh Rickmar wrote:
> Hi,
>
> Let me start off by saying that this is my first time in the clang
> codebase, and also that my c++ is pretty terrible.  Anyways, I was
> asked to see if it would be possible to read some sort of clang
> configuration (using the llvm yaml parser) to set things like the
> linker and assembler binaries, and other include and library paths.
> This is a very rough patch (currently it only sets the modifies the
> linker and assembler binaries if changed in the conf), but at this
> point I'm just wondering if there's any enthusiasm to get something
> like this in, and other general suggestions on how to get this coded
> together.
>
> Anyways, with this patch it should be possible to create some yaml,
> for example:
>
> ---
> ld: /usr/bin/ld
> as: /usr/bin/as
>
> and then either save that in /etc/clang.yaml or point the CLANG_CONF
> environmental variable to it.  If after parsing the yaml, either of
> those settings were specified, the ToolChain::GetProgramPath()
> function will now return what was parsed from the yaml insteading of
> getting the full path from the driver.
>
> Again, this is very rough and needs a lot of work still, but any
> feedback is welcome.
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>





More information about the cfe-commits mailing list