aboutsummaryrefslogtreecommitdiff
path: root/src/comp/lib
diff options
context:
space:
mode:
authorKelly Wilson <[email protected]>2011-05-06 07:59:33 -0600
committerGraydon Hoare <[email protected]>2011-05-06 11:30:39 -0700
commitb4a0d891c0a5eac32896650214abfe62cc1ea5a0 (patch)
treeb5eef1c12afea03d3d771f17650aedd0dce3fba1 /src/comp/lib
parentUse #env to bake a git revision string into rustc's --version output. (diff)
downloadrust-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.rs3
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;