cmState: Add a Base snapshot type.
For completeness mostly.
This commit is contained in:
parent
0f070dd3e1
commit
1fc645bd9c
@ -736,7 +736,7 @@ cmState::Snapshot cmState::CreateBaseSnapshot()
|
|||||||
{
|
{
|
||||||
PositionType pos = this->SnapshotData.Extend(this->SnapshotData.Root());
|
PositionType pos = this->SnapshotData.Extend(this->SnapshotData.Root());
|
||||||
pos->DirectoryParent = this->SnapshotData.Root();
|
pos->DirectoryParent = this->SnapshotData.Root();
|
||||||
pos->SnapshotType = BuildsystemDirectoryType;
|
pos->SnapshotType = BaseType;
|
||||||
pos->BuildSystemDirectory =
|
pos->BuildSystemDirectory =
|
||||||
this->BuildsystemDirectory.Extend(this->BuildsystemDirectory.Root());
|
this->BuildsystemDirectory.Extend(this->BuildsystemDirectory.Root());
|
||||||
pos->ExecutionListFile =
|
pos->ExecutionListFile =
|
||||||
@ -1019,7 +1019,8 @@ cmState::Snapshot cmState::Snapshot::GetCallStackParent() const
|
|||||||
{
|
{
|
||||||
++parentPos;
|
++parentPos;
|
||||||
}
|
}
|
||||||
if (parentPos->SnapshotType == cmState::BuildsystemDirectoryType)
|
if (parentPos->SnapshotType == cmState::BuildsystemDirectoryType
|
||||||
|
|| parentPos->SnapshotType == cmState::BaseType)
|
||||||
{
|
{
|
||||||
return snapshot;
|
return snapshot;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ public:
|
|||||||
|
|
||||||
enum SnapshotType
|
enum SnapshotType
|
||||||
{
|
{
|
||||||
|
BaseType,
|
||||||
BuildsystemDirectoryType,
|
BuildsystemDirectoryType,
|
||||||
FunctionCallType,
|
FunctionCallType,
|
||||||
MacroCallType,
|
MacroCallType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user