query-result-reader: order idl implementations correctly

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.

Fix by ordering the idl implementation files so that definitions
come before uses.
This commit is contained in:
Avi Kivity
2020-10-03 19:45:58 +03:00
parent 94fcec99d1
commit 4b40bc5065

View File

@@ -33,9 +33,9 @@
#include "idl/query.dist.hh"
#include "serializer_impl.hh"
#include "serialization_visitors.hh"
#include "idl/query.dist.impl.hh"
#include "idl/keys.dist.impl.hh"
#include "idl/uuid.dist.impl.hh"
#include "idl/keys.dist.impl.hh"
#include "idl/query.dist.impl.hh"
namespace query {