File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,17 @@ pub fn build(build_args: &BuildArgs, cargo_args: &BuildCargoArgs) -> Result<Path
345345 }
346346 }
347347
348+ // Write to init file
349+ let app_config = read_config_toml_or_default (
350+ build_args
351+ . config
352+ . to_owned ( )
353+ . unwrap_or_else ( || manifest_dir. join ( "openvm.toml" ) ) ,
354+ ) ?;
355+ app_config
356+ . app_vm_config
357+ . write_to_init_file ( & manifest_dir, Some ( & build_args. init_file_name ) ) ?;
358+
348359 // Build (allowing passed options to decide what gets built)
349360 let elf_target_dir = match build_generic ( & guest_options) {
350361 Ok ( raw_target_dir) => raw_target_dir,
@@ -365,17 +376,6 @@ pub fn build(build_args: &BuildArgs, cargo_args: &BuildCargoArgs) -> Result<Path
365376 return Ok ( elf_target_dir) ;
366377 }
367378
368- // Write to init file
369- let app_config = read_config_toml_or_default (
370- build_args
371- . config
372- . to_owned ( )
373- . unwrap_or_else ( || manifest_dir. join ( "openvm.toml" ) ) ,
374- ) ?;
375- app_config
376- . app_vm_config
377- . write_to_init_file ( & manifest_dir, Some ( & build_args. init_file_name ) ) ?;
378-
379379 // Get all built packages
380380 let workspace_root = get_workspace_root ( & manifest_path) ;
381381 let packages = if cargo_args. workspace || manifest_dir == workspace_root {
You can’t perform that action at this time.
0 commit comments