From 84e4a94ae7df8979e4a847162d94afb4417b580a Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Mon, 29 Jan 2024 13:36:25 +0000 Subject: [PATCH] AP_DDS: use microxrcedds_gen default-container-prealloc-size Signed-off-by: Rhys Mainwaring --- libraries/AP_DDS/wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_DDS/wscript b/libraries/AP_DDS/wscript index b181f9ab21..6cdcfd4718 100644 --- a/libraries/AP_DDS/wscript +++ b/libraries/AP_DDS/wscript @@ -76,6 +76,8 @@ def build(bld): idl_include_path = bld.srcnode.make_node(str(pathlib.PurePath(gen_path, "Idl"))).abspath() for idl in idl_files: + container_prealloc_size = 8 + idl_path = pathlib.PurePath(idl.abspath()) b = idl_path.name @@ -85,7 +87,7 @@ def build(bld): idl_folder = idl_path.parts[-3:-1] dst_dir = pathlib.PurePath(gen_path, "generated", *idl_folder) gen = [bld.bldnode.find_or_declare(str(dst_dir / name)) for name in [gen_h, gen_c]] - gen_cmd = f"{bld.env.MICROXRCEDDSGEN[0]} -cs -replace -d {dst_dir} -I {idl_include_path} {idl}" + gen_cmd = f"{bld.env.MICROXRCEDDSGEN[0]} -cs -replace -default-container-prealloc-size {container_prealloc_size} -d {dst_dir} -I {idl_include_path} {idl}" bld( # build IDL file source=idl,