aboutsummaryrefslogtreecommitdiff
path: root/src/comp/rustc.rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/rustc.rc')
-rw-r--r--src/comp/rustc.rc28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/comp/rustc.rc b/src/comp/rustc.rc
index 7b1f9236..4e186b17 100644
--- a/src/comp/rustc.rc
+++ b/src/comp/rustc.rc
@@ -4,21 +4,47 @@
use std;
mod fe {
+ mod ast;
mod lexer;
mod parser;
+ mod token;
}
mod driver {
mod rustc;
}
+mod util {
+ mod common;
+}
+
+auth driver.rustc.main = state;
+auth driver.rustc.write_module = unsafe;
+
mod lib {
- mod llvm;
+ alt (target_os) {
+ case ("win32") {
+ let (llvm_lib = "LLVM-2.8svn.dll") {
+ mod llvm;
+ }
+ }
+ case ("macos") {
+ let (llvm_lib = "libLLVM-2.8svn.dylib") {
+ mod llvm;
+ }
+ }
+ else {
+ let (llvm_lib = "libLLVM-2.8svn.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 .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: