Browse Source

Create cppia output folder if it doesn't exist (#10991)

tobil4sk 2 years ago
parent
commit
b15a61d3a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/generators/gencpp.ml

+ 1 - 0
src/generators/gencpp.ml

@@ -8440,6 +8440,7 @@ let generate_script_enum common_ctx script enum_def meta =
 let generate_cppia ctx =
 let generate_cppia ctx =
    let common_ctx = ctx.ctx_common in
    let common_ctx = ctx.ctx_common in
    let debug = ctx.ctx_debug_level in
    let debug = ctx.ctx_debug_level in
+   Path.mkdir_from_path common_ctx.file;
    let script = new script_writer ctx common_ctx.file common_ctx.debug in
    let script = new script_writer ctx common_ctx.file common_ctx.debug in
    ignore (script#stringId "");
    ignore (script#stringId "");
    ignore (script#typeId "");
    ignore (script#typeId "");