Disable DEBUG defines by default#687
Merged
monkeyman192 merged 1 commit intomonkeyman192:developmentfrom Feb 20, 2026
Merged
Conversation
Owner
|
Sorry about this! I accidentally left these in while I was testing something. They shouldn't be enabled. |
Owner
|
Also, regarding "statically" linking libMBIN, I'd caution against doing this as it would mean that every time MBINCompiler is updated, you'd need to build and release your tool as well. This does happen with another tool (https://github.com/cmkushnir/NMSModBuilder), but if it is possible, having it dynamically linked might save you some headaches depending on what you are doing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently working on a project (which will be open source when it is ready), and I have a submodule of MBINCompiler in my project specifically referencing the source files for libMBIN, to form my own in-project libMBIN. I did this to avoid DLL loading headaches; effectively "statically linking" libMBIN instead of dynamically.
This works wonderfully, except it's painfully slow due to the debug logs and I can't seem to be able to remove them without direct source modifications, or some MSBuild shenanigans I'm frankly terrified by.
For now I just excluded the specific file:
and included the file unmodified in my own libMBIN project directory, with the defines removed entirely. This fixes the issue.
Alternatively this PR fixes the issue, for me in the future and anyone who uses this source code without expecting those defines to be there, such as myself.
Thanks for the work on this project!