diff options
author | John Hodge <tpg@mutabah.net> | 2017-01-11 21:37:00 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-01-11 21:37:00 +0800 |
commit | d8e1c31c2158f60ce19a09723904ab0b71f7c27a (patch) | |
tree | d17b4fc061bbb0fd7ec8b8f3efca10139c6f51c6 /src/main.cpp | |
parent | 04b6360ff879a70a42fcd5f09cccc23cc2dd2d9f (diff) | |
download | mrust-d8e1c31c2158f60ce19a09723904ab0b71f7c27a.tar.gz |
All - Enable library codegen (and use crate name everywhere)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<TransList>("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 |