summaryrefslogtreecommitdiff
path: root/src/trans/codegen.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-02-11 14:39:12 +0800
committerJohn Hodge <tpg@mutabah.net>2017-02-11 14:39:12 +0800
commite493be82bb9824a9bd1332cb7aeee1f3cf9e57d3 (patch)
treee1acba7e16dfb79501d9dbf0778402923798ee26 /src/trans/codegen.cpp
parente0d43fb38d1b13e8ed5ee3e2fd7ddd8023319cbb (diff)
downloadmrust-e493be82bb9824a9bd1332cb7aeee1f3cf9e57d3.tar.gz
Trans - Allow passing library directories from command line
Diffstat (limited to 'src/trans/codegen.cpp')
-rw-r--r--src/trans/codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp
index e4ca0b5a..8b34cda3 100644
--- a/src/trans/codegen.cpp
+++ b/src/trans/codegen.cpp
@@ -14,7 +14,7 @@
#include "codegen.hpp"
#include "monomorphise.hpp"
-void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, const TransList& list, bool is_executable)
+void Trans_Codegen(const ::std::string& outfile, const TransOptions& opt, const ::HIR::Crate& crate, const TransList& list, bool is_executable)
{
static Span sp;
auto codegen = Trans_Codegen_GetGeneratorC(crate, outfile);
@@ -142,6 +142,6 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons
}
}
- codegen->finalise(is_executable);
+ codegen->finalise(is_executable, opt);
}