rustc.rc 1.5 KB
Newer Older
G
Graydon Hoare 已提交
1 2 3 4 5

// -*- rust -*-

use std;

6
mod front {
7
    mod ast;
8
    mod creader;
9
    mod extfmt;
G
Graydon Hoare 已提交
10 11
    mod lexer;
    mod parser;
G
Graydon Hoare 已提交
12
    mod token;
13
    mod eval;
G
Graydon Hoare 已提交
14 15
}

16
mod middle {
17
    mod fold;
18
    mod metadata;
19
    mod resolve;
20
    mod trans;
21
    mod ty;
22
    mod typeck;
23 24
}

25 26 27 28 29
mod back {
    mod abi;
    mod x86;
}

G
Graydon Hoare 已提交
30 31
mod driver {
    mod rustc;
32
    mod session;
G
Graydon Hoare 已提交
33 34
}

M
Marijn Haverbeke 已提交
35 36 37 38 39
mod pretty {
    mod pp;
    mod pprust;
}

G
Graydon Hoare 已提交
40 41 42 43
mod util {
    mod common;
}

44
auth driver.rustc.main = impure;
45
auth front.creader.load_crate = unsafe;
46
auth front.creader.lookup_def = impure;
47
auth front.creader.get_type = impure;
48
auth front.creader.get_symbol = impure;
49
auth front.creader.impure_no_op = impure;
50
auth middle.metadata = unsafe;
51
auth middle.trans = unsafe;
52
auth middle.trans.copy_any_self_to_alloca = impure;
53 54
auth middle.trans.copy_args_to_allocas = impure;
auth middle.trans.trans_block = impure;
55
auth middle.trans.alloc_ty = impure;
56
auth lib.llvm = unsafe;
57
auth pretty.pprust = impure;
58

G
Graydon Hoare 已提交
59
mod lib {
G
Graydon Hoare 已提交
60 61
    alt (target_os) {
        case ("win32") {
62 63
            let (llvm_lib = "rustllvm.dll") {
                mod llvm;
G
Graydon Hoare 已提交
64 65 66
            }
        }
        case ("macos") {
67 68
            let (llvm_lib = "librustllvm.dylib") {
                mod llvm;
G
Graydon Hoare 已提交
69 70 71
            }
        }
        else {
72 73
            let (llvm_lib = "librustllvm.so") {
                mod llvm;
G
Graydon Hoare 已提交
74 75
            }
        }
76
    }
G
Graydon Hoare 已提交
77 78
}

G
Graydon Hoare 已提交
79 80 81
// Local Variables:
// fill-column: 78;
// indent-tabs-mode: nil
G
Graydon Hoare 已提交
82
// c-basic-offset: 4
G
Graydon Hoare 已提交
83 84 85
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: