+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include <msp/path/utils.h>
#include "builder.h"
#include "buildinfo.h"
#include "compile.h"
#include "component.h"
#include "objectfile.h"
-#include "package.h"
+#include "sourcepackage.h"
using namespace std;
using namespace Msp;
string ext=Path::splitext(spath.str()).ext;
const char *tool=0;
if(ext==".cpp" || ext==".cc")
- {
tool="CXX";
- argv.push_back("g++");
- }
else
- {
tool="CC";
- argv.push_back("gcc");
- }
+
+ argv.push_back(builder.get_tool(tool, comp.get_package().get_arch()));
argv.push_back("-c");
const BuildInfo &binfo=comp.get_build_info();