diff options
| author | Kelly Wilson <[email protected]> | 2011-05-06 07:59:33 -0600 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-06 11:30:39 -0700 |
| commit | b4a0d891c0a5eac32896650214abfe62cc1ea5a0 (patch) | |
| tree | b5eef1c12afea03d3d771f17650aedd0dce3fba1 /src/comp/lib | |
| parent | Use #env to bake a git revision string into rustc's --version output. (diff) | |
| download | rust-b4a0d891c0a5eac32896650214abfe62cc1ea5a0.tar.xz rust-b4a0d891c0a5eac32896650214abfe62cc1ea5a0.zip | |
Ge the host triple using LLVM. Fix a few 'mutable' warnings also.
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index cfa82b03..f825e05d 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -848,6 +848,9 @@ native mod llvm = llvm_lib { call. */ fn LLVMRustGetLastError() -> sbuf; + /** Returns a string describing the hosts triple */ + fn LLVMRustGetHostTriple() -> sbuf; + /** Parses the bitcode in the given memory buffer. */ fn LLVMRustParseBitcode(MemoryBufferRef MemBuf) -> ModuleRef; |