From: Mikko Rasa Date: Fri, 8 Aug 2008 08:59:12 +0000 (+0000) Subject: Put output files for foreign archs in their own directories X-Git-Tag: 0.9~5 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f5d3127099bc41f986094eb98732849ee9bfb748;p=builder.git Put output files for foreign archs in their own directories --- diff --git a/source/sourcepackage.cpp b/source/sourcepackage.cpp index 48ded5d..9da7973 100644 --- a/source/sourcepackage.cpp +++ b/source/sourcepackage.cpp @@ -35,7 +35,11 @@ Msp::FS::Path SourcePackage::get_temp_dir() const Msp::FS::Path SourcePackage::get_out_dir() const { - return source/config.get_option("outdir").value; + const std::string &arch_name=builder.get_current_arch().get_name(); + if(arch_name=="native") + return source/config.get_option("outdir").value; + else + return source/arch_name/config.get_option("outdir").value; } /**