From f5d3127099bc41f986094eb98732849ee9bfb748 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 8 Aug 2008 08:59:12 +0000 Subject: [PATCH] Put output files for foreign archs in their own directories --- source/sourcepackage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } /** -- 2.45.2