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 > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
