summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-09 23:10:08 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-09 23:10:08 +0800
commite72371bc9780ff5fedd6ca3995e0016b7ee50858 (patch)
tree8becefa80de3ea6434a2eb104856e61271d8983b /src/main.cpp
parent529ff2b340a38906d372efd895743e12ccc2de21 (diff)
downloadmrust-e72371bc9780ff5fedd6ca3995e0016b7ee50858.tar.gz
main - Disable library codegen for push
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5f1341ee..d6d25fb1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -435,17 +435,19 @@ int main(int argc, char *argv[])
// ERROR?
break;
case ::AST::Crate::Type::RustLib: {
+ // Generate a .o
+ #if 0
TransList items = CompilePhase<TransList>("Trans Enumerate", [&]() { return Trans_Enumerate_Public(*hir_crate); });
CompilePhaseV("Trans Codegen", [&]() { Trans_Codegen(params.outfile + ".c", *hir_crate, items, false); });
- // Generate a .o
- //HIR_Codegen_Lib(params.outfile + ".o", *hir_crate);
- // Link metatdata and object into a .rlib
+ #endif
// Save a loadable HIR dump
CompilePhaseV("HIR Serialise", [&]() {
//HIR_Serialise(params.outfile + ".meta", *hir_crate);
HIR_Serialise(params.outfile, *hir_crate);
});
+
+ // Link metatdata and object into a .rlib
break; }
case ::AST::Crate::Type::RustDylib:
// Save a loadable HIR dump