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" {
}
This commit is contained in:
parent
2ad0954941
commit
28d1626221
2 changed files with 2 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -80,23 +80,7 @@ auth middle::trans = unsafe;
|
|||
auth lib::llvm = unsafe;
|
||||
|
||||
mod lib {
|
||||
alt (target_os) {
|
||||
case ("win32") {
|
||||
let (llvm_lib = "rustllvm.dll") {
|
||||
mod llvm;
|
||||
}
|
||||
}
|
||||
case ("macos") {
|
||||
let (llvm_lib = "librustllvm.dylib") {
|
||||
mod llvm;
|
||||
}
|
||||
}
|
||||
case (_) {
|
||||
let (llvm_lib = "librustllvm.so") {
|
||||
mod llvm;
|
||||
}
|
||||
}
|
||||
}
|
||||
mod llvm;
|
||||
}
|
||||
|
||||
// Local Variables:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue