Skip to content
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

Generate fbs header file through cmake during build flow #225

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

vtangTT
Copy link
Contributor

@vtangTT vtangTT commented Oct 29, 2024

As discussed here: #180 (comment)

Old setup involved building the flatc executable and then manually running it to generate the header file.

Now it is integrated into the cmake build flow and tt_simulation_device_generated.h will be generated as a dependency of device target.

@vtangTT vtangTT changed the title Generate fbs headers files through cmake during build flow Generate fbs header file through cmake during build flow Oct 29, 2024
@vtangTT vtangTT force-pushed the vtangTT/fbs_generate branch 4 times, most recently from 1ddcb2a to bfc1a3d Compare October 29, 2024 16:13
device/CMakeLists.txt Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@vtangTT vtangTT force-pushed the vtangTT/fbs_generate branch 2 times, most recently from 81f1968 to 633dd06 Compare October 30, 2024 00:14
@vtangTT
Copy link
Contributor Author

vtangTT commented Oct 30, 2024

This PR will be ready to go out after #224 that privatizes nng and fbs headers

Copy link
Contributor

@pjanevskiTT pjanevskiTT left a comment

Choose a reason for hiding this comment

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

Great changes. Approving mostly for build flow, I think this is much cleaner now. You can wait on other approvals regarding detailed cmake changes

.gitignore Outdated Show resolved Hide resolved
Copy link
Collaborator

@afuller-TT afuller-TT left a comment

Choose a reason for hiding this comment

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

Lovely!

@vtangTT vtangTT merged commit 62d6268 into main Oct 31, 2024
20 checks passed
@vtangTT vtangTT deleted the vtangTT/fbs_generate branch October 31, 2024 21:49
mbezuljTT pushed a commit that referenced this pull request Nov 1, 2024
As discussed here:
#180 (comment)

Old setup involved building the `flatc` executable and then manually
running it to generate the header file.

Now it is integrated into the cmake build flow and
`tt_simulation_device_generated.h` will be generated as a dependency of
`device` target.
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.

3 participants