summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-13 20:04:32 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-13 20:04:32 +0800
commit8dc924f542e3f21adf2f0df041d7e61acf06e961 (patch)
treebd71326bc660881e32e3c1ce176d5f551fec44a9 /src/trans/codegen_c.cpp
parent62009d81340a1616189d56bda20e79803309c0ad (diff)
downloadmrust-8dc924f542e3f21adf2f0df041d7e61acf06e961.tar.gz
Codegen C - Use the load path of the crate for the file source
Diffstat (limited to 'src/trans/codegen_c.cpp')
-rw-r--r--src/trans/codegen_c.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp
index 803930f8..32ac75f3 100644
--- a/src/trans/codegen_c.cpp
+++ b/src/trans/codegen_c.cpp
@@ -122,9 +122,7 @@ namespace {
{
for( const auto& crate : m_crate.m_ext_crates )
{
- // TODO: Get the path from the CratePtr
- //tmp.push_back(crate.second.m_filename + ".o");
- tmp.push_back("output/lib" + crate.first + ".hir.o");
+ tmp.push_back(crate.second.m_filename + ".o");
args.push_back(tmp.back().c_str());
}
args.push_back("-lm");
@@ -2415,7 +2413,6 @@ namespace {
emit_dst(); m_of << " = " << e;
),
(BorrowOf,
- // TODO: If the type is Borrow of a DST, do a fat assign.
if( ty.m_data.is_Function() )
{
emit_dst(); m_of << " = " << Trans_Mangle(e);