From e72371bc9780ff5fedd6ca3995e0016b7ee50858 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 9 Jan 2017 23:10:08 +0800 Subject: main - Disable library codegen for push --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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("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 -- cgit v1.2.3