Skip to content

Swift: merge codegen and cppcodegen #9402

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

Merged
merged 1 commit into from
Jun 2, 2022
Merged

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Jun 1, 2022

Python code was simplified, and now a --generate option can be used
to drive what can be generated.

The extractor pack creation now will use an internally generated
dbscheme. This should be the same as the checked in one, but doing so
allows bazel run create-extractor-pack and bazel run codegen to be
run independently from one another, while previously the former had to
follow the latter in case of a schema change. This is the change that
triggered the above simplification, as in order for the two dbscheme
files to be identical, the first // generated line had to state the
same generator script.

Python code was simplified, and now a `--generate` option can be used
to drive what can be generated.

The extractor pack creation now will use an internally generated
dbscheme. This should be the same as the checked in one, but doing so
allows `bazel run create-extractor-pack` and `bazel run codegen` to be
run independently from one another, while previously the former had to
follow the latter in case of a schema change. This is the change that
triggered the above simplification, as in order for the two dbscheme
files to be identical, the first `// generated` line had to state the
same generator script.
@redsun82 redsun82 requested a review from AlexDenisov June 1, 2022 15:08
@redsun82 redsun82 requested review from a team as code owners June 1, 2022 15:08
@github-actions github-actions bot added the Swift label Jun 1, 2022
@redsun82 redsun82 merged commit 3b57d48 into main Jun 2, 2022
@redsun82 redsun82 deleted the redsun82/swift-codegen-tweaks branch June 2, 2022 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants