X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.cpp;h=ab10c6113eb4ab367bd3636ba15691e276005b2c;hb=76ede1d44e68182a2380260c22ec7be68c9817af;hp=f413ad4be1660df7bec4f233451fd0efc8f17963;hpb=d914c5f40ca1194e7fd6a2b30664ac4717e38786;p=builder.git diff --git a/source/objectfile.cpp b/source/objectfile.cpp index f413ad4..ab10c61 100644 --- a/source/objectfile.cpp +++ b/source/objectfile.cpp @@ -35,7 +35,8 @@ FS::Path ObjectFile::generate_target_path(const Component &comp, const FS::Path if(*i!=".") fn += *i; } - return temp_dir/(FS::basepart(fn)+".o"); + const Architecture &arch = comp.get_package().get_builder().get_current_arch(); + return temp_dir/arch.get_object_patterns().front().apply(FS::basepart(fn)); } void ObjectFile::set_used_in_shared_library(bool u)