Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't overwrite/produce structured log file if tundra is not actually…
… doing a build (but just showing help/targets/includes)
  • Loading branch information
aras-p committed Jan 22, 2019
1 parent ee0d025 commit 62ee2d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Driver.cpp
Expand Up @@ -339,7 +339,10 @@ bool DriverInitData(Driver* self)
if (!DriverPrepareDag(self, s_DagFileName))
return false;

SetStructuredLogFileName(self->m_DagData->m_StructuredLogFileName);
// do not produce/overwrite structured log output file,
// if we're only reporting something and not doing an actual build
if (self->m_Options.m_IncludesOutput == nullptr && !self->m_Options.m_ShowHelp && !self->m_Options.m_ShowTargets)
SetStructuredLogFileName(self->m_DagData->m_StructuredLogFileName);

DigestCacheInit(&self->m_DigestCache, MB(128), self->m_DagData->m_DigestCacheFileName);

Expand Down

0 comments on commit 62ee2d4

Please sign in to comment.