Give .gch files an unique path based on module name: allows multiple modules to (safely!) share a single precompiled header.

Enjoy rebuilding the whole tree <3

This commit dedicated to hpoussin
See issue #3263 for more details.

svn path=/trunk/; revision=36760
This commit is contained in:
KJK::Hyperion 2008-10-15 13:46:23 +00:00
parent b86c8c5ee2
commit 7b75f95f4b

View file

@ -1018,7 +1018,7 @@ MingwModuleHandler::GetPrecompiledHeaderFilename () const
if ( !module.pch || !use_pch )
return NULL;
return new FileLocation ( IntermediateDirectory,
module.pch->file->relative_path,
module.pch->file->relative_path + "/.gch_" + module.name,
module.pch->file->name + ".gch" );
}