mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
idl-compiler: generate views after serializers
Clang eagerly instantiates templates, so if it needs a template function for which it has a declaration but not a definition, it will not instantiate the definition when it sees it. This causes link errors. In this case, the views use the serializer implementations, but are generated before them. Fix by generating the view implementations after the serializer implementations that they use.
This commit is contained in:
@@ -1037,9 +1037,9 @@ def load_file(name):
|
||||
data = parse_file(name)
|
||||
if data:
|
||||
handle_types(data)
|
||||
add_visitors(cout)
|
||||
if data:
|
||||
handle_objects(data, hout, cout)
|
||||
add_visitors(cout)
|
||||
if config.ns != '':
|
||||
fprintln(cout, "}")
|
||||
cout.close()
|
||||
|
||||
Reference in New Issue
Block a user