Skip to content

fix: don't include .inc in outputs - #6154

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/no-inc-in-gen
Apr 16, 2025
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/no-inc-in-gen

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Apr 16, 2025

Copy link
Copy Markdown
Contributor

Compiling after a ninja clean caused the JSON generator to fail. This isn't a complete fix, the root of the problem is a bit deeper, because we'd actually need to split the task into two - one for generating the .inc file and one for generating the implementation, because clang will freak out if the .inc file doesn't exist and will refuse to resolve types like std::chrono::system_clock1.

Because we don't add new eventsub topics every day, it's fine having to recompile twice. Not being able to do clean the output is a bit worse, I think.

Footnotes

  1. Ok, actually, it's a bit more complicated. The two-step process would work because we generally don't need the type information to generate a forward declaration, but in theory, it still reads an incomplete header so if type information would alter the names of generated types, this would be wrong. ↩

@pajlada
pajlada merged commit 3282cac into Chatterino:master Apr 16, 2025
@Nerixyz
Nerixyz deleted the fix/no-inc-in-gen branch April 16, 2025 17:27
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
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