rust/src/comp/rustc.rc

86 lines
1.5 KiB
Plaintext
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
use std;
mod front {
2010-08-12 12:27:50 -05:00
mod ast;
mod creader;
2011-02-23 22:48:01 -06:00
mod extfmt;
2010-06-23 23:03:09 -05:00
mod lexer;
mod parser;
2010-08-18 13:35:12 -05:00
mod token;
mod eval;
2010-06-23 23:03:09 -05:00
}
mod middle {
mod fold;
mod metadata;
mod resolve;
mod trans;
mod ty;
2010-11-03 18:43:12 -05:00
mod typeck;
}
mod back {
mod abi;
mod x86;
}
2010-06-23 23:03:09 -05:00
mod driver {
mod rustc;
mod session;
2010-06-23 23:03:09 -05:00
}
mod pretty {
mod pp;
mod pprust;
}
2010-08-18 13:34:47 -05:00
mod util {
mod common;
}
auth driver.rustc.main = impure;
auth front.creader.load_crate = unsafe;
2011-03-25 19:53:46 -05:00
auth front.creader.lookup_def = impure;
auth front.creader.get_type = impure;
auth front.creader.get_symbol = impure;
auth front.creader.impure_no_op = impure;
auth middle.metadata = unsafe;
auth middle.trans = unsafe;
auth middle.trans.copy_any_self_to_alloca = impure;
auth middle.trans.copy_args_to_allocas = impure;
auth middle.trans.trans_block = impure;
auth middle.trans.alloc_ty = impure;
auth lib.llvm = unsafe;
auth pretty.pprust = impure;
2010-07-12 19:47:40 -05:00
mod lib {
2010-08-18 13:34:22 -05:00
alt (target_os) {
case ("win32") {
let (llvm_lib = "rustllvm.dll") {
mod llvm;
2010-08-18 13:34:22 -05:00
}
}
case ("macos") {
let (llvm_lib = "librustllvm.dylib") {
mod llvm;
2010-08-18 13:34:22 -05:00
}
}
else {
let (llvm_lib = "librustllvm.so") {
mod llvm;
2010-08-18 13:34:22 -05:00
}
}
}
2010-07-12 19:47:40 -05:00
}
2010-06-23 23:03:09 -05:00
// Local Variables:
// fill-column: 78;
// indent-tabs-mode: nil
2010-08-18 13:34:22 -05:00
// c-basic-offset: 4
2010-06-23 23:03:09 -05:00
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: