From d8e1c31c2158f60ce19a09723904ab0b71f7c27a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 11 Jan 2017 21:37:00 +0800 Subject: All - Enable library codegen (and use crate name everywhere) --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d6d25fb1..31c02092 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -435,10 +435,10 @@ int main(int argc, char *argv[]) // ERROR? break; case ::AST::Crate::Type::RustLib: { + #if 1 // 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); }); + CompilePhaseV("Trans Codegen", [&]() { Trans_Codegen(params.outfile + ".o", *hir_crate, items, false); }); #endif // Save a loadable HIR dump -- cgit v1.2.3