#include "component.h"
#include "csourcefile.h"
#include "sourcepackage.h"
+#include "tool.h"
using namespace std;
using namespace Msp;
local_incpath.insert(local_incpath.begin(), build_info.local_incpath.begin(), build_info.local_incpath.end());
local_incpath.push_front(FS::dirname(path).str());
+ Tool *compiler = builder.get_toolchain().get_tool_for_suffix(FS::extpart(FS::basename(path)), true);
+ if(compiler)
+ compiler->prepare();
for(IncludeList::iterator i=includes.begin(); i!=includes.end(); ++i)
{
- Target *hdr = builder.get_vfs().find_header(i->substr(1), ((*i)[0]=='"' ? local_incpath : incpath));
+ Target *hdr = builder.get_vfs().find_header(i->substr(1), compiler, ((*i)[0]=='"' ? local_incpath : incpath));
if(hdr)
add_transitive_dependency(*hdr);
}