-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add KEEP_FOR_RE() macro to SKSE/Impl/PCH.h #21
Conversation
Just use the |
I believe the issue is that compiler flags wouldn't solve the problem because there's no guarantee that classes with 0 references will be included even with the flags. Happy to be wrong. |
I don't think PR has any meaning at this moment, it should be more of an issue to discuss. |
This PR was created specifically to allow discussing the problem--please refrain from flippantly closing PRs in the future. Alan and Nightfallstorm spent a significant amount of time dealing with this for CommonLibSSE, this PR was made so the given implementation and alternatives could be discussed for CommonLibSF. |
Which is why I suggested to open an issue for discussion, the PR hanging here without anything to test is impractical, the macro snippet could be posted within a code block instead of forcing to update a PCH file. But if you are very certain about this, please re-open the PR instead of an issue, and I presume you'd also handle the auto CI action as well. |
You're playing semantics here, it doesn't matter if it's raised as a PR or an issue. The point was to discuss the problem. As far as I know, the given solution does work and was tested by Alan and Nightfall. |
Nightfall tested in SSE. The reason a PR is better is someone can check it out or cherry pick it to test it. You can't do that with issues. |
Please do not say that, I'm contributing here with good intentions only, and that accusation is not okay. I'll reiterate my statement, if you are very certain about this, please re-open the PR instead of an issue, and I presume you'd also handle the auto CI action as well. |
Lol no one is questioning your intentions, I'm just gonna make a new PR for this later bc this thread is a bit of a dumpster fire |
Problem:
Proposed solution:
KEEP_FOR_RE()
macro to each reversed class (possibly via a GitHub action) to concretize it and prevent it from being optimized out during debug builds