message: Remove duplicated code paths for create-exe
diff: @@ -190,9 +190,10 @@ impl CreateExe {
  };
  std::fs::create_dir_all(&tempdir)?;
  + let atoms =
  if let Ok(pirita) = WebCMmap::parse(input_path.clone(), &ParseOptions::default()) {
  // pirita file
  - let atoms = compile_pirita_into_directory(
  + compile_pirita_into_directory(
  &pirita,
  &tempdir,
  &self.compiler,
  @@ -202,22 +203,10 @@ impl CreateExe {
  &self.precompiled_atom,
  AllowMultiWasm::Allow,
  self.debug_dir.is_some(),
  - )?;
  - get_module_infos(&tempdir, &atoms, object_format)?;
  - let mut entrypoint = get_entrypoint(&tempdir)?;
  - create_header_files_in_dir(&tempdir, &mut entrypoint, &atoms, &self.precompiled_atom)?;
  - link_exe_from_dir(
  - &tempdir,
  - output_path,
  - &cross_compilation,
  - &self.libraries,
  - self.debug_dir.is_some(),
  - &atoms,
  - &self.precompiled_atom,
  - )?;
  + )
  } else {
  // wasm file
  - let atoms = prepare_directory_from_single_wasm_file(
  + prepare_directory_from_single_wasm_file(
  &input_path,
  &tempdir,
  &self.compiler,
  @@ -226,7 +215,9 @@ impl CreateExe {
  object_format,
  &self.precompiled_atom,
  self.debug_dir.is_some(),
  - )?;
  + )
  + }?;
  +
  get_module_infos(&tempdir, &atoms, object_format)?;
  let mut entrypoint = get_entrypoint(&tempdir)?;
  create_header_files_in_dir(&tempdir, &mut entrypoint, &atoms, &self.precompiled_atom)?;
  @@ -239,7 +230,6 @@ impl CreateExe {
  &atoms,
  &self.precompiled_atom,
  )?;
  - }
  if self.target_triple.is_some() {
  eprintln!(
  