1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02:21 +02:00

Fixed rebuild on comptime file content changes

This commit is contained in:
Brian Fiete 2022-06-28 08:09:53 -07:00
parent 05ef084a53
commit b98503fab7
3 changed files with 16 additions and 11 deletions

View file

@ -3553,13 +3553,13 @@ bool CeContext::AddRebuild(const CeRebuildKey& key, const CeRebuildValue& value)
{
if (mCurModule == NULL)
return false;
if (mCurModule->mCurTypeInstance == NULL)
if (mCallerTypeInstance == NULL)
return false;
if ((mCurEvalFlags & CeEvalFlags_NoRebuild) != 0)
return false;
if (mCurModule->mCurTypeInstance->mCeTypeInfo == NULL)
mCurModule->mCurTypeInstance->mCeTypeInfo = new BfCeTypeInfo();
mCurModule->mCurTypeInstance->mCeTypeInfo->mRebuildMap[key] = value;
if (mCallerTypeInstance->mCeTypeInfo == NULL)
mCallerTypeInstance->mCeTypeInfo = new BfCeTypeInfo();
mCallerTypeInstance->mCeTypeInfo->mRebuildMap[key] = value;
mCurModule->mCompiler->mHasComptimeRebuilds = true;
return true;
}