summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a8352dc2..0802d2d4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -399,11 +399,16 @@ int main(int argc, char *argv[])
});
// Generate a .o
//HIR_Codegen_Lib(params.outfile + ".o", *hir_crate);
- // Link into a .rlib
+ // Link metatdata and object into a .rlib
break;
case ::AST::Crate::Type::RustDylib:
// Save a loadable HIR dump
+ CompilePhaseV("HIR Serialise", [&]() {
+ //HIR_Serialise(params.outfile + ".meta", *hir_crate);
+ HIR_Serialise(params.outfile, *hir_crate);
+ });
// Generate a .so/.dll
+ // TODO: Codegen and include the metadata in a non-loadable segment
break;
case ::AST::Crate::Type::CDylib:
// Generate a .so/.dll