diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-19 17:31:08 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-19 17:31:08 +0800 |
commit | c131c30e6db48c1edc77b123ce6771e3c5608242 (patch) | |
tree | c7e0cea305964b6ef6f29c215f6a4a81638f8e04 /src | |
parent | 3db124f5233862042f0c8eee1c6afd4392de0539 (diff) | |
download | mrust-c131c30e6db48c1edc77b123ce6771e3c5608242.tar.gz |
main - Clear lang items in proc macro crates (prevent them from being serialised)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index bd21013d..66ef46f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -572,6 +572,7 @@ int main(int argc, char *argv[]) TransList items2 = CompilePhase<TransList>("Trans Enumerate", [&]() { return Trans_Enumerate_Main(*hir_crate); }); CompilePhaseV("Trans Codegen", [&]() { Trans_Codegen(params.outfile + "-plugin", trans_opt, *hir_crate, items2, true); }); + hir_crate->m_lang_items.clear(); // Make sure that we're not exporting any lang items CompilePhaseV("HIR Serialise", [&]() { HIR_Serialise(params.outfile, *hir_crate); }); break; } case ::AST::Crate::Type::Executable: |