about summary refs log tree commit diff
path: root/src/comp/lib/llvm.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-20 17:59:45 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-20 18:09:24 -0400
commit28d1626221f50cf44c8d95abb40059a389e3fae7 (patch)
tree18b109c9c92ef3a39888c39e0f06962605d45b6b /src/comp/lib/llvm.rs
parent2ad0954941c839474f501252cf1551ff94bd5903 (diff)
downloadrust-28d1626221f50cf44c8d95abb40059a389e3fae7.tar.gz
rust-28d1626221f50cf44c8d95abb40059a389e3fae7.zip
Remove the old library names. These were unused since rustboot.
Right now rustc hardcodes -lrustllvm. The idea is to instead remember all the native
modules used and convert them to -l directives to the linker. In the case of a
library that is installed in an unusual location, Graydon suggested using metadata:

native module foo = "bar" {
}
Diffstat (limited to 'src/comp/lib/llvm.rs')
-rw-r--r--src/comp/lib/llvm.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 505e07e3f3f..c72cd4f41fd 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -125,7 +125,7 @@ const uint LLVMRealULT = 12u;
 const uint LLVMRealULE = 13u;
 const uint LLVMRealUNE = 14u;
 
-native mod llvm = llvm_lib {
+native mod llvm = "rustllvm" {
 
     type ModuleRef;
     type ContextRef;
@@ -883,9 +883,6 @@ native mod llvm = llvm_lib {
     fn LLVMLinkModules(ModuleRef Dest, ModuleRef Src) -> Bool;
 }
 
-native mod rustllvm = llvm_lib {
-}
-
 /* Slightly more terse object-interface to LLVM's 'builder' functions. For the
  * most part, build.Foo() wraps LLVMBuildFoo(), threading the correct
  * BuilderRef B into place.  A BuilderRef is a cursor-like LLVM value that