mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed issue of file hashing causing too much rebuilding
This commit is contained in:
parent
592471434f
commit
807b71d433
10 changed files with 53 additions and 22 deletions
|
@ -1290,8 +1290,8 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
|
|||
|
||||
if (bfParser != NULL)
|
||||
{
|
||||
mSignatureHashCtx->MixinStr(bfParser->mFileName);
|
||||
mSignatureHashCtx->Mixin(bfParser->mParserData->mMD5Hash);
|
||||
mFullHashCtx->MixinStr(bfParser->mFileName);
|
||||
mFullHashCtx->Mixin(bfParser->mParserData->mMD5Hash);
|
||||
}
|
||||
HashNode(*mSignatureHashCtx, typeDeclaration->mTypeNode);
|
||||
for (auto& baseClassNode : typeDeclaration->mBaseClasses)
|
||||
|
@ -2066,6 +2066,13 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
|||
|
||||
HashContext inlineHashCtx;
|
||||
|
||||
if (mCurSource != NULL)
|
||||
{
|
||||
auto bfParser = mCurSource->ToParser();
|
||||
if (bfParser != NULL)
|
||||
inlineHashCtx.MixinStr(bfParser->mFileName);
|
||||
}
|
||||
|
||||
//for (auto methodDef : mCurTypeDef->mMethods)
|
||||
for (int methodIdx = 0; methodIdx < (int)mCurTypeDef->mMethods.size(); methodIdx++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue