Fix include paths in flatc generated code
Make flatc generate correct include paths in generated code when one .fbs file includes another.
Without --keep-prefix flatc will generate #include with filename only dropping the path.
@@ -34,7 +34,7 @@ class Flatc(iw.CustomCommand):
yield '-I'
yield self.resolve_path(x)
output_dir = os.path.dirname(self.resolve_path(common.get(self.output, 0)))
- cmd = common.get_interpreter_path() + ['$S/build/scripts/stdout2stderr.py', binary, '--cpp'] + list(incls()) + ['-o', output_dir, path]
+ cmd = common.get_interpreter_path() + ['$S/build/scripts/stdout2stderr.py', binary, '--cpp', '--keep-prefix'] + list(incls()) + ['-o', output_dir, path]
self.call(cmd)
