Skip to content

Conversation

@cosmith-nvidia
Copy link
Contributor

Per the definition of --gen-compare: only generate comparators for object API generated structs. Types annoated with native_type must define their own comparators if --gen-compare is enabled.

Also enables --gen-compare for native_type_test and fixes the test by adding a comparator for the Native::Vector3D type.

@github-actions github-actions bot added c++ codegen Involving generating code from schema python labels Aug 21, 2025
@cosmith-nvidia cosmith-nvidia force-pushed the native-type-compare branch 2 times, most recently from 0f75a6a to 97d087a Compare October 31, 2025 22:14
@cosmith-nvidia
Copy link
Contributor Author

@dbaileychess I rebased this onto master and also added the --gen-compare flag to the CMakeLists.txt compile_schema_for_test (now the one-off without comparator is no longer needed!).

PTAL. Thanks!

@cosmith-nvidia cosmith-nvidia force-pushed the native-type-compare branch 2 times, most recently from 0230452 to e6469d1 Compare November 5, 2025 00:33
Per the definition of --gen-compare: only generate comparators for object API
generated structs. Types annoated with native_type must define their own
comparators if `--gen-compare` is enabled.

Also enables --gen-compare for native_type_test and fixes the test by adding a
comparator for the Native::Vector3D type.
@aardappel aardappel enabled auto-merge (squash) November 5, 2025 00:40
@aardappel aardappel merged commit 4173b84 into google:master Nov 5, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants