Skip to content

Conversation

imjuniper
Copy link
Contributor

When trying to build in a configuration with NO_LOGGING that isn't Shipping (e.g. Test), there's a lot of errors related to log categories.
Following the examples in UE's ProfilingDebugging/TraceScreenshot.h file, I aliased the correct type depending on whether logging is enabled. I also corrected some macros that broke under the same circumstances.

Some parts of Cog could probably be completely disabled if logging is disabled, but I don't know enough about it yet to do that. This PR is only meant to fix compile errors, not optimally disable components.

Copy link
Owner

@arnaud-jamin arnaud-jamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would need the sample to compile to validate.
Thanks!

@imjuniper
Copy link
Contributor Author

Will fix tomorrow!

@imjuniper
Copy link
Contributor Author

Just to update, I'll be fixing it Monday instead, since I'll have access to my work PC and it's easier than at home!

@imjuniper
Copy link
Contributor Author

I updated the PR, the sample now compiles in Development, Test and Shipping configurations! Like I mentioned first, it's probably not the optimal way to fix NO_LOGGING support in places like the Test configuration, but I'll look into it later. It breaks some functionality when NO_LOGGING is enabled and Cog is too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants