Skip to content

Commit

Permalink
Merge pull request #13 from CyberAgentGameEntertainment/feature/no_de…
Browse files Browse the repository at this point in the history
…tailed_build_report

Disable `BuildOptions.DetailedBuildReport` with `BUILDMAGIC_NO_DETAILED_BUILD_REPORT`
  • Loading branch information
ruccho authored Dec 2, 2024
2 parents d40fccc + d164015 commit bc9bf74
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ public void AddExtraScriptingDefines(IReadOnlyList<string> extraScriptingDefines
/// </summary>
public BuildPlayerOptions Build()
{
var options = _options;

#if BUILDMAGIC_NO_DETAILED_BUILD_REPORT
options &= ~BuildOptions.DetailedBuildReport;
#endif

return new BuildPlayerOptions
{
locationPathName = string.IsNullOrWhiteSpace(_locationPathName) ? GetDefaultBuildPath(_buildTarget) : _locationPathName,
Expand All @@ -115,7 +121,7 @@ public BuildPlayerOptions Build()
target = _buildTarget,
targetGroup = _buildTargetGroup,
subtarget = _subtarget,
options = _options,
options = options,
extraScriptingDefines = _extraScriptingDefines.ToArray()
};
}
Expand Down

0 comments on commit bc9bf74

Please sign in to comment.