temporarily disable pvm linker optimizations

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-09-13 14:52:47 +02:00
parent f086c57442
commit 783fa640e4
+1
View File
@@ -32,6 +32,7 @@ fn invoke_lld(cmd_args: &[&str]) -> bool {
fn polkavm_linker<T: AsRef<[u8]>>(code: T) -> anyhow::Result<Vec<u8>> {
let mut config = polkavm_linker::Config::default();
config.set_strip(true);
config.set_optimize(false);
polkavm_linker::program_from_elf(config, code.as_ref())
.map_err(|reason| anyhow::anyhow!("polkavm linker failed: {}", reason))