mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Fix --gen-compare to not generate comparators for native types. (#8681)
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.
This commit is contained in:
parent
5fe90a9160
commit
4173b84d4b
5 changed files with 49 additions and 5 deletions
|
|
@ -355,7 +355,7 @@ flatc(
|
|||
)
|
||||
|
||||
flatc(
|
||||
["--cpp", "--gen-mutable", "--gen-object-api", "--reflect-names"],
|
||||
["--cpp", "--gen-compare", "--gen-mutable", "--gen-object-api", "--reflect-names"],
|
||||
schema="native_type_test.fbs",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue