]> git.tdb.fi Git - builder.git/commitdiff
Put output files for foreign archs in their own directories
authorMikko Rasa <tdb@tdb.fi>
Fri, 8 Aug 2008 08:59:12 +0000 (08:59 +0000)
committerMikko Rasa <tdb@tdb.fi>
Fri, 8 Aug 2008 08:59:12 +0000 (08:59 +0000)
source/sourcepackage.cpp

index 48ded5da7f2e1d7ca01427f3032064b94013dc8f..9da79739d56854130f42d5fdbf58963557fa9450 100644 (file)
@@ -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;
 }
 
 /**