Skip to content

Fix target path for header file generation#67

Merged
mristin merged 2 commits intomainfrom
empwilli/fix_code_gen
Jan 22, 2026
Merged

Fix target path for header file generation#67
mristin merged 2 commits intomainfrom
empwilli/fix_code_gen

Conversation

@empwilli
Copy link
Collaborator

@empwilli empwilli commented Jan 19, 2026

When we integrated the code gen call in our dev_scripts, we
accidentally introduced a bug where both .cpp and .hpp files are
generated into the src folder. This breaks build as .hpp files are
shipped from the include directory, instead.

Instead, with this commit we generate into a temporary directory and
copy the generated artifacts into the correct directories.

Fixes #66.

When we integrated the code gen call in our dev_scripts, we
accidentally introduced a bug where both .cpp and .hpp files are
generated into the src folder. This breaks build as .hpp files are
shipped from the include directory, instead.

Instead, with this commit we generate into a temporary directory and
copy the generated artefacts into the correct directories.
The codegen script ignored the target directory for the code generation,
generating into `src/` by default. Hence, we fix it to use the
`--target` CLI argument, instead.
@empwilli empwilli requested a review from mristin January 19, 2026 15:10
@mristin mristin merged commit 6b05cbb into main Jan 22, 2026
1 check passed
@empwilli empwilli deleted the empwilli/fix_code_gen branch February 4, 2026 13:51
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.

Updater script puts header files into src directory

2 participants