about summary refs log tree commit diff
path: root/src/comp/rustc.rc
blob: 39879894753872495aa466a6f23374b138dfc92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108

// -*- rust -*-

meta export (name = "rustc",
             uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
             url = "http://rust-lang.org/src/rustc",
             ver = "0.1");

meta (desc = "The Rust compiler",
      license = "BSD");


use std (name = "std",
         vers = "0.1",
         url = "http://rust-lang.org/src/std");

mod middle {
    mod trans;
    mod ty;
    mod walk;
    mod visit;
    mod metadata;
    mod resolve;
    mod typeck;
    mod alias;

    mod tstate {
        mod ck;
        mod annotate;
        mod aux = "auxiliary.rs";
        mod bitvectors;
        mod collect_locals;
        mod pre_post_conditions;
        mod states;
        mod ann;
    }
}


mod pretty {
    mod pprust;
    mod pp;
    mod ppaux;
}

mod front {
    mod ast;
    mod creader;
    mod ext;
    mod extfmt;
    mod extenv;
    mod codemap;
    mod lexer;
    mod parser;
    mod token;
    mod eval;
}

mod back {
    mod link;
    mod abi;
    mod upcall;
    mod x86;
}

mod driver {
    mod rustc;
    mod session;
}

mod util {
    mod common;
    mod data;
}

auth front::creader::load_crate = unsafe;
auth front::creader::get_metadata_section = unsafe;
auth middle::metadata = unsafe;
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;
            }
        }
    }
}

// Local Variables:
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: