Skip to content

Commit

Permalink
AP_DDS: use microxrcedds_gen default-container-prealloc-size
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Feb 16, 2024
1 parent 1fed173 commit 1d828fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_DDS/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down

0 comments on commit 1d828fe

Please sign in to comment.