remove the zkasm format

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-05-08 10:48:01 +02:00
parent 169740eb5e
commit b55669f5c5
15 changed files with 28 additions and 215 deletions
-29
View File
@@ -120,35 +120,6 @@ pub fn llvm_ir(
Ok(build)
}
/// Runs the PolkaVM assembly mode.
pub fn zkasm(
input_files: &[PathBuf],
include_metadata_hash: bool,
debug_config: Option<revive_llvm_context::DebugConfig>,
) -> anyhow::Result<Build> {
let path = match input_files.len() {
1 => input_files.first().expect("Always exists"),
0 => anyhow::bail!("The input file is missing"),
length => anyhow::bail!(
"Only one input file is allowed in the PolkaVM assembly mode, but found {}",
length,
),
};
let project = Project::try_from_zkasm_path(path)?;
let optimizer_settings = revive_llvm_context::OptimizerSettings::none();
let build = project.compile(
optimizer_settings,
false,
include_metadata_hash,
false,
debug_config,
)?;
Ok(build)
}
/// Runs the standard output mode.
#[allow(clippy::too_many_arguments)]
pub fn standard_output(