From: Mikko Rasa Date: Tue, 31 Aug 2021 11:55:59 +0000 (+0300) Subject: Include the toolchain name in project file build commands X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9dd42116ce72f8b2288ab535f89242f87a44337a;p=builder.git Include the toolchain name in project file build commands --- diff --git a/source/vcxprojectgenerator.cpp b/source/vcxprojectgenerator.cpp index 3f806a0..52451f5 100644 --- a/source/vcxprojectgenerator.cpp +++ b/source/vcxprojectgenerator.cpp @@ -69,10 +69,11 @@ void VcxProjectGenerator::Worker::main() exe = dynamic_cast(*i); const char *argv0 = Application::get_argv0(); + const string &toolchain = builder.get_current_arch().get_toolchain(); for(const char **i=platforms; *i; ++i) for(vector::const_iterator j=build_types.begin(); j!=build_types.end(); ++j) { - string base_cmd = format("%s --arch=%s --build-type=%s --prefix=%s", argv0, *i, *j, builder.get_prefix()); + string base_cmd = format("%s --arch=%s-%s --build-type=%s --prefix=%s", argv0, *i, toolchain, *j, builder.get_prefix()); IO::print(out, "\t\n", *j, *i); IO::print(out, "\t\tMakeFile\n"); IO::print(out, "\t\t%s\n", base_cmd);