Ted Kremenek
2007-Nov-30 23:23 UTC
[LLVMdev] including the host triple in "include/llvm/Config/config.h"
I was wondering if would be possible to get the host's triple captured as a string in include/llvm/Config/config.h. Autoconf currently generates this file, and capturing the host triple would be extremely useful for use in the new C frontend. I am not an autoconf expert. Does anyone have any pointers on how this could be added to the LLVM configuration scripts? Thanks. Ted
Eric Christopher
2007-Dec-01 00:00 UTC
[LLVMdev] including the host triple in "include/llvm/Config/config.h"
On Nov 30, 2007, at 3:23 PM, Ted Kremenek wrote:> I was wondering if would be possible to get the host's triple captured > as a string in include/llvm/Config/config.h. Autoconf currently > generates this file, and capturing the host triple would be extremely > useful for use in the new C frontend. > > I am not an autoconf expert. Does anyone have any pointers on how > this could be added to the LLVM configuration scripts? Thanks.I'm testing something for you right now... -eric
Eric Christopher
2007-Dec-01 00:21 UTC
[LLVMdev] including the host triple in "include/llvm/Config/config.h"
On Nov 30, 2007, at 3:23 PM, Ted Kremenek wrote:> I was wondering if would be possible to get the host's triple captured > as a string in include/llvm/Config/config.h. Autoconf currently > generates this file, and capturing the host triple would be extremely > useful for use in the new C frontend. > > I am not an autoconf expert. Does anyone have any pointers on how > this could be added to the LLVM configuration scripts? Thanks.Here you go, it will output something like: #define LLVM_HOSTTRIPLE "i686-apple-darwin9.1.0" Anyone care if this is checked in or not? -eric -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: configure.ac.diff.txt URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071130/996c2f27/attachment.txt> -------------- next part --------------
Chris Lattner
2007-Dec-01 01:38 UTC
[LLVMdev] including the host triple in "include/llvm/Config/config.h"
On Fri, 30 Nov 2007, Eric Christopher wrote:>> I am not an autoconf expert. Does anyone have any pointers on how >> this could be added to the LLVM configuration scripts? Thanks. > > > Here you go, it will output something like: > > #define LLVM_HOSTTRIPLE "i686-apple-darwin9.1.0" > > Anyone care if this is checked in or not?Sounds great, please commit! Thanks Eric, -Chris -- http://nondot.org/sabre/ http://llvm.org/
Reasonably Related Threads
- [LLVMdev] including the host triple in "include/llvm/Config/config.h"
- [LLVMdev] build failure: ocamlopt: unknown option `-g'
- [LLVMdev] Creating a backend target -- must I modify include/llvm/ADT/Triple.h ?
- [LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
- [LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds