Add skip obj unlinker arg

This commit is contained in:
Jan
2022-04-22 23:21:23 +02:00
parent 2823a46b92
commit bba96b248d
3 changed files with 14 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Unlinker::Impl
_NODISCARD bool ShouldLoadObj() const
{
return m_args.m_task != UnlinkerArgs::ProcessingTask::LIST;
return m_args.m_task != UnlinkerArgs::ProcessingTask::LIST && !m_args.m_skip_obj;
}
/**
@ -403,7 +403,7 @@ class Unlinker::Impl
if (ShouldLoadObj())
{
ObjLoading::LoadReferencedContainersForZone(&searchPathsForZone, zone.get());
ObjLoading::LoadObjDataForZone(&searchPathsForZone, zone.get());
ObjLoading::LoadObjDataForZone(&searchPathsForZone, zone.get());
}
if (!HandleZone(zone.get()))